wok-next view python-web.py/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="web.py"
4 PACKAGE="python-web.py"
5 VERSION="0.39" # for Python2
6 VERSION3="0.40.dev1" # for Python3 (experimental)
7 CATEGORY="python"
8 SHORT_DESC="Makes web apps"
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="PublicDomain"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:web.py"
15 BUILD_DEPENDS="python python3"
16 SPLIT="${PACKAGE/python/python3}:3"
18 compile_rules() {
19 case $SET in
20 3) VERSION="$VERSION3";;
21 esac
22 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
23 }
25 genpkg_rules() {
26 case $PACKAGE in
27 python3-*) VERSION="$VERSION3";;
28 esac
30 copy @std
31 py="${PACKAGE%%-*}" # python/python3
32 DEPENDS="$py"
33 }