wok-current annotate python-turbogears/receipt @ rev 3423

python-turbogears: Remove pkg before building
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 13 12:07:45 2009 +0200 (2009-06-13)
parents 25c18407eac2
children 5921dc28d8c6
rev   line source
pankso@3379 1 # SliTaz package receipt.
pankso@3379 2
pankso@3379 3 PACKAGE="python-turbogears"
pankso@3379 4 VERSION="1.0.8"
pankso@3379 5 CATEGORY="network"
pankso@3379 6 SHORT_DESC="Python web application framework."
pankso@3379 7 MAINTAINER="pankso@slitaz.org"
pankso@3379 8 SOURCE="TurboGears"
pankso@3379 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pankso@3379 10 WEB_SITE="http://www.turbogears.org/"
pankso@3379 11 WGET_URL="http://files.turbogears.org/eggs/$TARBALL"
pankso@3379 12 DEPENDS="python psycopg sqlobject python-kid python-cheetah python-cherrypy \
pankso@3379 13 python-paste python-pastedeploy python-pastescript python-formencode \
claudinei@3395 14 python-decoratortools python-extremes python-simplejson"
pankso@3379 15 BUILD_DEPENDS="$DEPENDS python-dev setuptools"
pankso@3379 16
pankso@3379 17 # Rules to configure and make the package.
pankso@3379 18 compile_rules()
pankso@3379 19 {
pankso@3423 20 # Tgsetup dont build TurboGearsKid and friends if there are already
pankso@3423 21 # installed, so remove python-turbogears before building.
pankso@3423 22 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
pankso@3423 23 yes | tazpkg remove python-turbogears
pankso@3423 24 fi
pankso@3382 25 # Use tgsetup.py to bootstrap installation with all deps. It will
pankso@3382 26 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
pankso@3379 27 cd $src/tools
pankso@3379 28 DESTDIR="../_pkg/usr/lib/python2.5/site-packages"
pankso@3379 29 mkdir -p $DESTDIR
pankso@3379 30 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"
pankso@3379 31 }
pankso@3379 32
pankso@3379 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3379 34 genpkg_rules()
pankso@3379 35 {
pankso@3379 36 cp -a $_pkg/usr $fs
pankso@3379 37 rm $fs/usr/lib/python2.5/site-packages/site.py*
pankso@3379 38 }