wok-next diff python-cherrypy/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 | 9b3461bf373c |
children | d5aab818505e |
line diff
1.1 --- a/python-cherrypy/receipt Fri Jul 13 13:52:56 2018 +0300 1.2 +++ b/python-cherrypy/receipt Sat Sep 22 16:05:26 2018 +0300 1.3 @@ -1,30 +1,41 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="CherryPy" 1.8 PACKAGE="python-cherrypy" 1.9 -VERSION="3.1.2" # Fix to this version for turbogears. 1.10 +VERSION="18.0.1" # version for Python3 1.11 +VERSION2="17.3.0" # version for Python2 1.12 CATEGORY="development" 1.13 -SHORT_DESC="CherryPy is a pythonic, object-oriented HTTP framework." 1.14 +SHORT_DESC="Object-Oriented HTTP framework" 1.15 MAINTAINER="pankso@slitaz.org" 1.16 LICENSE="BSD" 1.17 -WEB_SITE="http://www.cherrypy.org/" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +HOST_ARCH="any" 1.20 REPOLOGY="python:cherrypy" 1.21 1.22 -SOURCE="CherryPy" 1.23 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.24 -WGET_URL="http://download.cherrypy.org/cherrypy/$VERSION/$TARBALL" 1.25 -TAGS="python" 1.26 +BUILD_DEPENDS="python python-cheroot python-contextlib2 python-more-itertools \ 1.27 +python-portend python-six python-zc.lockfile \ 1.28 +python3 python3-cheroot python3-more-itertools python3-portend \ 1.29 +python3-zc.lockfile" 1.30 +SPLIT="${PACKAGE/python/python3}:3" 1.31 1.32 -DEPENDS="python" 1.33 -BUILD_DEPENDS="python python-dev" 1.34 - 1.35 -# Rules to configure and make the package. 1.36 -compile_rules() 1.37 -{ 1.38 - python setup.py install --root=$DESTDIR 1.39 +compile_rules() { 1.40 + case $SET in 1.41 + '') VERSION="$VERSION2";; 1.42 + esac 1.43 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.44 } 1.45 1.46 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 -genpkg_rules() 1.48 -{ 1.49 - cp -a $install/usr $fs 1.50 +genpkg_rules() { 1.51 + copy @std 1.52 + py="${PACKAGE%%-*}" # python/python3 1.53 + case $PACKAGE in 1.54 + python-*) 1.55 + DEPENDS="$py $py-cheroot $py-contextlib2 $py-more-itertools \ 1.56 + $py-portend $py-six $py-zc.lockfile" 1.57 + ;; 1.58 + python3-*) 1.59 + DEPENDS="$py $py-cheroot $py-more-itertools $py-portend \ 1.60 + $py-zc.lockfile" 1.61 + ;; 1.62 + esac 1.63 }