wok-next diff python-turbogears/receipt @ rev 20769
cookutils: up (1071); python-alabaster, python-turbogears, python-webob: use pip; add python-crank, python-repoze.lru
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 17:36:07 2018 +0300 (2018-06-06) |
parents | 6c73b944e8dd |
children | 92698cd69f34 |
line diff
1.1 --- a/python-turbogears/receipt Mon Feb 26 04:46:49 2018 +0200 1.2 +++ b/python-turbogears/receipt Wed Jun 06 17:36:07 2018 +0300 1.3 @@ -1,43 +1,23 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="python-turbogears" 1.8 -VERSION="1.1.1" 1.9 +VERSION="latest" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Python web application framework." 1.12 +SHORT_DESC="Python web application framework" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="MIT" 1.15 -SOURCE="TurboGears" 1.16 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.turbogears.org/" 1.18 -WGET_URL="http://files.turbogears.org/eggs/$TARBALL" 1.19 +WEB_SITE="https://pypi.org/project/TurboGears2/" 1.20 1.21 -DEPENDS="python psycopg sqlobject python-kid python-cheetah python-cherrypy \ 1.22 -python-paste python-pastedeploy python-pastescript python-formencode \ 1.23 -python-decoratortools python-extremes python-simplejson python-peak-rules" 1.24 -BUILD_DEPENDS="$DEPENDS python-dev" 1.25 +BUILD_DEPENDS="python python-webob python-crank python-repoze.lru \ 1.26 +python-markupsafe" 1.27 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.32 - # Tgsetup dont build TurboGearsKid and friends if there are already 1.33 - # installed, so remove python-turbogears before building. 1.34 - if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then 1.35 - yes | tazpkg remove python-turbogears 1.36 - fi 1.37 - # Use tgsetup.py to bootstrap installation with all deps. It will 1.38 - # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. 1.39 - cd $src/tools 1.40 - DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" 1.41 - mkdir -p $DESTDIR 1.42 - PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" 1.43 +compile_rules() { 1.44 + pip install --no-compile --root=$DESTDIR TurboGears2 1.45 } 1.46 1.47 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.48 -genpkg_rules() 1.49 -{ 1.50 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.51 - cp -a $install/usr $fs 1.52 - rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* 1.53 +genpkg_rules() { 1.54 + VERSION=$(sed -n '/^Successfully installed/ s|.*TurboGears2-||p' $LOGS/$PACKAGE.log) 1.55 + copy @std 1.56 + DEPENDS="python python-webob python-crank python-repoze.lru \ 1.57 + python-markupsafe" 1.58 } 1.59 -