wok-next view python-cherrypy/receipt @ rev 21102
gtkglext: patch
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 00:26:26 2019 +0200 (2019-01-03) |
parents | c9a7a7b42a86 |
children |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="CherryPy"
4 PACKAGE="python-cherrypy"
5 VERSION="18.0.1" # version for Python3
6 VERSION2="17.3.0" # version for Python2
7 CATEGORY="development"
8 SHORT_DESC="Object-Oriented HTTP framework"
9 MAINTAINER="devel@slitaz.org"
10 LICENSE="BSD"
11 WEB_SITE="https://pypi.org/project/$ORIGIN/"
12 HOST_ARCH="any"
13 REPOLOGY="python:cherrypy"
15 BUILD_DEPENDS="python python-cheroot python-contextlib2 python-more-itertools \
16 python-portend python-six python-zc.lockfile \
17 python3 python3-cheroot python3-more-itertools python3-portend \
18 python3-zc.lockfile"
19 SPLIT="${PACKAGE/python/python3}:3"
21 compile_rules() {
22 case $SET in
23 '') VERSION="$VERSION2";;
24 esac
25 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
26 }
28 genpkg_rules() {
29 copy @std
30 py="${PACKAGE%%-*}" # python/python3
31 case $PACKAGE in
32 python-*)
33 DEPENDS="$py $py-cheroot $py-contextlib2 $py-more-itertools \
34 $py-portend $py-six $py-zc.lockfile"
35 ;;
36 python3-*)
37 DEPENDS="$py $py-cheroot $py-more-itertools $py-portend \
38 $py-zc.lockfile"
39 ;;
40 esac
41 }