wok-next view python-django/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | add7e3ca3657 |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="Django"
4 PACKAGE="python-django"
5 VERSION="2.1.1" # version for Python3
6 VERSION2="1.11.15" # version for Python2
7 CATEGORY="python"
8 SHORT_DESC="High-level Python Web framework"
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="BSD"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:django"
15 BUILD_DEPENDS="python python-pytz python3 python3-pytz"
16 SPLIT="${PACKAGE/python/python3}:3"
18 compile_rules() {
19 case $SET in
20 '') VERSION="$VERSION2";;
21 esac
22 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
24 sed -i 's|fill="ABABA7"|fill="#ABABA7"|' \
25 $install/usr/lib/python*/site-packages/django/contrib/gis/static/gis/img/draw_polygon_off.svg
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 python-*) VERSION="$VERSION2";;
31 esac
32 copy @std
33 py=${PACKAGE%%-*} # python/python3
34 DEPENDS="$py $py-pytz"
35 }