wok-current view python-turbogears/receipt @ rev 13051

php, php-gd: Add freetype support
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jun 18 22:02:23 2012 +0200 (2012-06-18)
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 }