wok-6.x annotate python-turbogears/receipt @ rev 24554
updated flac and flac-dev again (1.3.3 -> 1.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 11:25:23 2022 +0100 (2022-02-25) |
parents | 814362194a8d |
children | 79b956933702 |
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 |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24288 | 21 wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \ |
pascal@24288 | 22 sed '/archive.*tar/!d;s|.*/tg\(.*\).tar.*|\1|;q' |
pascal@24288 | 23 } |
pascal@24288 | 24 |
pankso@3379 | 25 # Rules to configure and make the package. |
pankso@3379 | 26 compile_rules() |
pankso@3379 | 27 { |
pascal@20620 | 28 sed -i -e 's|http://pypi|https://pypi|' -e \ |
pascal@20620 | 29 's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \ |
pascal@20620 | 30 tools/tgsetup.py ez_setup.py |
pascal@6594 | 31 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pankso@3423 | 32 # Tgsetup dont build TurboGearsKid and friends if there are already |
pankso@3423 | 33 # installed, so remove python-turbogears before building. |
pankso@3423 | 34 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then |
pankso@3423 | 35 yes | tazpkg remove python-turbogears |
pankso@3423 | 36 fi |
pankso@3382 | 37 # Use tgsetup.py to bootstrap installation with all deps. It will |
pankso@3382 | 38 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. |
pankso@3379 | 39 cd $src/tools |
pascal@6592 | 40 DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" |
pankso@3379 | 41 mkdir -p $DESTDIR |
pankso@3379 | 42 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" |
pankso@3379 | 43 } |
pankso@3379 | 44 |
pankso@3379 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3379 | 46 genpkg_rules() |
pankso@3379 | 47 { |
pascal@6594 | 48 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pascal@15376 | 49 cp -a $install/usr $fs |
pascal@6592 | 50 rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* |
pankso@3379 | 51 } |
al@18086 | 52 |