wok annotate python-turbogears/receipt @ rev 16023
wireless_tools: cross compile to ARM (I need USB wifi now my RPi boot SliTaz ARM like a charm :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 06 22:19:44 2014 +0100 (2014-03-06) |
parents | 0846c0130529 |
children | 7390f8de9846 |
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 \ |
claudinei@3395 | 16 python-decoratortools python-extremes python-simplejson" |
pankso@3379 | 17 BUILD_DEPENDS="$DEPENDS python-dev setuptools" |
pankso@3379 | 18 |
pankso@3379 | 19 # Rules to configure and make the package. |
pankso@3379 | 20 compile_rules() |
pankso@3379 | 21 { |
pascal@6594 | 22 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pankso@3423 | 23 # Tgsetup dont build TurboGearsKid and friends if there are already |
pankso@3423 | 24 # installed, so remove python-turbogears before building. |
pankso@3423 | 25 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then |
pankso@3423 | 26 yes | tazpkg remove python-turbogears |
pankso@3423 | 27 fi |
pankso@3382 | 28 # Use tgsetup.py to bootstrap installation with all deps. It will |
pankso@3382 | 29 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. |
pankso@3379 | 30 cd $src/tools |
pascal@6592 | 31 DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" |
pankso@3379 | 32 mkdir -p $DESTDIR |
pankso@3379 | 33 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" |
pankso@3379 | 34 } |
pankso@3379 | 35 |
pankso@3379 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3379 | 37 genpkg_rules() |
pankso@3379 | 38 { |
pascal@6594 | 39 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pascal@15376 | 40 cp -a $install/usr $fs |
pascal@6592 | 41 rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* |
pankso@3379 | 42 } |