wok-current view python-turbogears/receipt @ rev 19335
Up tazpanel (595)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Jul 17 20:47:30 2016 -0400 (2016-07-17) |
parents | 7390f8de9846 |
children | 02335b48dae1 |
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 python-peak-rules"
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 }