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