wok view python-turbogears/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (10 months ago)
parents 79b956933702
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://github.com/TurboGears/tg2/releases 2>/dev/null | \
26 sed '/tag\//!d;s|.*tag/[a-z]*||;s|".*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # 1.5.1 removed
33 # sed -i -e 's|http://pypi|https://pypi|' -e \
34 # 's|sys, os|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \
35 # tools/tgsetup.py ez_setup.py
36 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
37 # Tgsetup dont build TurboGearsKid and friends if there are already
38 # installed, so remove python-turbogears before building.
39 # if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
40 # yes | tazpkg remove python-turbogears
41 # fi
42 # Use tgsetup.py to bootstrap installation with all deps. It will
43 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid.
44 # cd $src/tools
45 # DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages"
46 # mkdir -p $DESTDIR
47 # PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr"
49 python setup.py install --root=$DESTDIR
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 # PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
56 cp -a $install/usr $fs
57 # rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
58 }