wok-next annotate python-django/receipt @ rev 21595

updated dokuwiki (2012-01-25 -> 2018-04-22c)
author Hans-G?nter Theisgen
date Wed Jun 24 13:53:45 2020 +0100 (2020-06-24)
parents add7e3ca3657
children
rev   line source
al@20948 1 # SliTaz package receipt v2.
claudinei@3389 2
al@20972 3 ORIGIN="Django"
claudinei@3389 4 PACKAGE="python-django"
al@20972 5 VERSION="2.1.1" # version for Python3
al@20972 6 VERSION2="1.11.15" # version for Python2
al@20972 7 CATEGORY="python"
al@20948 8 SHORT_DESC="High-level Python Web framework"
al@20948 9 MAINTAINER="al.bobylev@gmail.com"
pascal@15378 10 LICENSE="BSD"
al@20972 11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20972 12 HOST_ARCH="any"
al@20885 13 REPOLOGY="python:django"
al@20885 14
al@20972 15 BUILD_DEPENDS="python python-pytz python3 python3-pytz"
al@20972 16 SPLIT="${PACKAGE/python/python3}:3"
pascal@15378 17
al@20948 18 compile_rules() {
al@20948 19 case $SET in
al@20972 20 '') VERSION="$VERSION2";;
al@20948 21 esac
al@20972 22 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
al@20948 23
al@20948 24 sed -i 's|fill="ABABA7"|fill="#ABABA7"|' \
al@20948 25 $install/usr/lib/python*/site-packages/django/contrib/gis/static/gis/img/draw_polygon_off.svg
claudinei@3389 26 }
claudinei@3389 27
al@20948 28 genpkg_rules() {
al@20972 29 case $PACKAGE in
al@20972 30 python-*) VERSION="$VERSION2";;
al@20972 31 esac
al@20948 32 copy @std
al@20972 33 py=${PACKAGE%%-*} # python/python3
al@20972 34 DEPENDS="$py $py-pytz"
claudinei@3389 35 }