wok-6.x view python-turbogears/receipt @ rev 25492
Up foomatic-db (4.0-20221117)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 18 09:54:27 2022 +0000 (21 months ago) |
parents | 1df6fa555414 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-turbogears"
4 VERSION="1.5.1"
5 CATEGORY="network"
6 SHORT_DESC="Python web application framework."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/TurboGears/"
10 REPOLOGY="python:turbogears"
12 SOURCE="TurboGears"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="psycopg python python-cheetah python-cherrypy python-decoratortools
17 python-extremes python-formencode python-kid python-paste
18 python-pastedeploy python-pastescript python-peak-rules
19 python-simplejson sqlobject"
20 BUILD_DEPENDS="python-dev python-setuptools"
22 current_version()
23 {
24 wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/tg\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # 1.5.1 removed
32 # sed -i -e 's|http://pypi|https://pypi|' -e \
33 # 's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \
34 # tools/tgsetup.py ez_setup.py
35 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
36 # Tgsetup dont build TurboGearsKid and friends if there are already
37 # installed, so remove python-turbogears before building.
38 # if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
39 # yes | tazpkg remove python-turbogears
40 # fi
41 # Use tgsetup.py to bootstrap installation with all deps. It will
42 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
43 # cd $src/tools
44 # DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages"
45 # mkdir -p $DESTDIR
46 # PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"
48 python setup.py install --root=$DESTDIR
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
55 cp -a $install/usr $fs
56 # rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
57 }