wok view python-turbogears/receipt @ rev 18018

Up: tazpanel (477), tazpkg (797).
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 02 18:09:05 2015 +0200 (2015-05-02)
parents 0846c0130529
children 7390f8de9846
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 LICENSE="MIT"
9 SOURCE="TurboGears"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.turbogears.org/"
12 WGET_URL="http://files.turbogears.org/eggs/$TARBALL"
14 DEPENDS="python psycopg sqlobject python-kid python-cheetah python-cherrypy \
15 python-paste python-pastedeploy python-pastescript python-formencode \
16 python-decoratortools python-extremes python-simplejson"
17 BUILD_DEPENDS="$DEPENDS python-dev setuptools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
23 # Tgsetup dont build TurboGearsKid and friends if there are already
24 # installed, so remove python-turbogears before building.
25 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
26 yes | tazpkg remove python-turbogears
27 fi
28 # Use tgsetup.py to bootstrap installation with all deps. It will
29 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
30 cd $src/tools
31 DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages"
32 mkdir -p $DESTDIR
33 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
40 cp -a $install/usr $fs
41 rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
42 }