wok annotate python-turbogears/receipt @ rev 23395
updated perl-test-deep (0.106 -> 1.130)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 17:09:45 2020 +0100 (2020-03-31) |
parents | 02335b48dae1 |
children | 1df6fa555414 |
rev | line source |
---|---|
pankso@3379 | 1 # SliTaz package receipt. |
pankso@3379 | 2 |
pankso@3379 | 3 PACKAGE="python-turbogears" |
slaxemulator@6604 | 4 VERSION="1.1.1" |
pankso@3379 | 5 CATEGORY="network" |
pankso@3379 | 6 SHORT_DESC="Python web application framework." |
pankso@3379 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
pankso@3379 | 9 SOURCE="TurboGears" |
pankso@3379 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@3379 | 11 WEB_SITE="http://www.turbogears.org/" |
pankso@3379 | 12 WGET_URL="http://files.turbogears.org/eggs/$TARBALL" |
pascal@15376 | 13 |
pankso@3379 | 14 DEPENDS="python psycopg sqlobject python-kid python-cheetah python-cherrypy \ |
pankso@3379 | 15 python-paste python-pastedeploy python-pastescript python-formencode \ |
al@18956 | 16 python-decoratortools python-extremes python-simplejson python-peak-rules" |
pascal@21582 | 17 BUILD_DEPENDS="$DEPENDS python-dev python-setuptools" |
pankso@3379 | 18 |
pankso@3379 | 19 # Rules to configure and make the package. |
pankso@3379 | 20 compile_rules() |
pankso@3379 | 21 { |
pascal@20620 | 22 sed -i -e 's|http://pypi|https://pypi|' -e \ |
pascal@20620 | 23 's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \ |
pascal@20620 | 24 tools/tgsetup.py ez_setup.py |
pascal@6594 | 25 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pankso@3423 | 26 # Tgsetup dont build TurboGearsKid and friends if there are already |
pankso@3423 | 27 # installed, so remove python-turbogears before building. |
pankso@3423 | 28 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then |
pankso@3423 | 29 yes | tazpkg remove python-turbogears |
pankso@3423 | 30 fi |
pankso@3382 | 31 # Use tgsetup.py to bootstrap installation with all deps. It will |
pankso@3382 | 32 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. |
pankso@3379 | 33 cd $src/tools |
pascal@6592 | 34 DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" |
pankso@3379 | 35 mkdir -p $DESTDIR |
pankso@3379 | 36 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" |
pankso@3379 | 37 } |
pankso@3379 | 38 |
pankso@3379 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3379 | 40 genpkg_rules() |
pankso@3379 | 41 { |
pascal@6594 | 42 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pascal@15376 | 43 cp -a $install/usr $fs |
pascal@6592 | 44 rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* |
pankso@3379 | 45 } |
al@18086 | 46 |