wok annotate python-turbogears/receipt @ rev 25564
Up memtest (6.20)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 11 15:58:49 2023 +0000 (18 months ago) |
parents | 1df6fa555414 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pankso@3379 | 1 # SliTaz package receipt. |
pankso@3379 | 2 |
pankso@3379 | 3 PACKAGE="python-turbogears" |
Hans-G?nter@25243 | 4 VERSION="1.5.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" |
Hans-G?nter@25243 | 9 WEB_SITE="https://pypi.org/project/TurboGears/" |
Hans-G?nter@25243 | 10 REPOLOGY="python:turbogears" |
Hans-G?nter@25243 | 11 |
pankso@3379 | 12 SOURCE="TurboGears" |
pankso@3379 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25243 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15376 | 15 |
Hans-G?nter@25243 | 16 DEPENDS="psycopg python python-cheetah python-cherrypy python-decoratortools |
Hans-G?nter@25243 | 17 python-extremes python-formencode python-kid python-paste |
Hans-G?nter@25243 | 18 python-pastedeploy python-pastescript python-peak-rules |
Hans-G?nter@25243 | 19 python-simplejson sqlobject" |
Hans-G?nter@25243 | 20 BUILD_DEPENDS="python-dev python-setuptools" |
pankso@3379 | 21 |
pascal@24288 | 22 current_version() |
pascal@24288 | 23 { |
pascal@24288 | 24 wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \ |
pascal@24288 | 25 sed '/archive.*tar/!d;s|.*/tg\(.*\).tar.*|\1|;q' |
pascal@24288 | 26 } |
pascal@24288 | 27 |
pankso@3379 | 28 # Rules to configure and make the package. |
pankso@3379 | 29 compile_rules() |
pankso@3379 | 30 { |
Hans-G?nter@25243 | 31 # 1.5.1 removed |
Hans-G?nter@25243 | 32 # sed -i -e 's|http://pypi|https://pypi|' -e \ |
Hans-G?nter@25243 | 33 # 's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \ |
Hans-G?nter@25243 | 34 # tools/tgsetup.py ez_setup.py |
Hans-G?nter@25243 | 35 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pankso@3423 | 36 # Tgsetup dont build TurboGearsKid and friends if there are already |
pankso@3423 | 37 # installed, so remove python-turbogears before building. |
Hans-G?nter@25243 | 38 # if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then |
Hans-G?nter@25243 | 39 # yes | tazpkg remove python-turbogears |
Hans-G?nter@25243 | 40 # fi |
pankso@3382 | 41 # Use tgsetup.py to bootstrap installation with all deps. It will |
pankso@3382 | 42 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. |
Hans-G?nter@25243 | 43 # cd $src/tools |
Hans-G?nter@25243 | 44 # DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" |
Hans-G?nter@25243 | 45 # mkdir -p $DESTDIR |
Hans-G?nter@25243 | 46 # PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" |
Hans-G?nter@25243 | 47 |
Hans-G?nter@25243 | 48 python setup.py install --root=$DESTDIR |
pankso@3379 | 49 } |
pankso@3379 | 50 |
pankso@3379 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3379 | 52 genpkg_rules() |
pankso@3379 | 53 { |
Hans-G?nter@25243 | 54 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
Hans-G?nter@25243 | 55 cp -a $install/usr $fs |
Hans-G?nter@25243 | 56 # rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* |
pankso@3379 | 57 } |
al@18086 | 58 |