wok view python-turbogears/receipt @ rev 8221
imported patch cleanup_inprogress/slitaz-i18n.patch
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 27 00:20:50 2011 +0100 (2011-01-27) |
parents | d0fa681cee8d |
children | bf4a09ef1d2e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-turbogears"
4 VERSION="1.1.1"
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 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
21 # Tgsetup dont build TurboGearsKid and friends if there are already
22 # installed, so remove python-turbogears before building.
23 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
24 yes | tazpkg remove python-turbogears
25 fi
26 # Use tgsetup.py to bootstrap installation with all deps. It will
27 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
28 cd $src/tools
29 DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages"
30 mkdir -p $DESTDIR
31 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
38 cp -a $_pkg/usr $fs
39 rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
40 }