wok-next annotate python-cherrypy/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | c9a7a7b42a86 |
children |
rev | line source |
---|---|
al@20972 | 1 # SliTaz package receipt v2. |
pankso@3376 | 2 |
al@20972 | 3 ORIGIN="CherryPy" |
pankso@3376 | 4 PACKAGE="python-cherrypy" |
al@20972 | 5 VERSION="18.0.1" # version for Python3 |
al@20972 | 6 VERSION2="17.3.0" # version for Python2 |
pankso@3376 | 7 CATEGORY="development" |
al@20972 | 8 SHORT_DESC="Object-Oriented HTTP framework" |
al@21020 | 9 MAINTAINER="devel@slitaz.org" |
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:cherrypy" |
al@20885 | 14 |
al@20972 | 15 BUILD_DEPENDS="python python-cheroot python-contextlib2 python-more-itertools \ |
al@20972 | 16 python-portend python-six python-zc.lockfile \ |
al@20972 | 17 python3 python3-cheroot python3-more-itertools python3-portend \ |
al@20972 | 18 python3-zc.lockfile" |
al@20972 | 19 SPLIT="${PACKAGE/python/python3}:3" |
pascal@15378 | 20 |
al@20972 | 21 compile_rules() { |
al@20972 | 22 case $SET in |
al@20972 | 23 '') VERSION="$VERSION2";; |
al@20972 | 24 esac |
al@20972 | 25 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION |
pankso@3376 | 26 } |
pankso@3376 | 27 |
al@20972 | 28 genpkg_rules() { |
al@20972 | 29 copy @std |
al@20972 | 30 py="${PACKAGE%%-*}" # python/python3 |
al@20972 | 31 case $PACKAGE in |
al@20972 | 32 python-*) |
al@20972 | 33 DEPENDS="$py $py-cheroot $py-contextlib2 $py-more-itertools \ |
al@20972 | 34 $py-portend $py-six $py-zc.lockfile" |
al@20972 | 35 ;; |
al@20972 | 36 python3-*) |
al@20972 | 37 DEPENDS="$py $py-cheroot $py-more-itertools $py-portend \ |
al@20972 | 38 $py-zc.lockfile" |
al@20972 | 39 ;; |
al@20972 | 40 esac |
pankso@3376 | 41 } |