wok view python-cheetah/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 539876c71561
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-cheetah"
4 VERSION="2.4.4"
5 CATEGORY="development"
6 TAGS="python"
7 SHORT_DESC="A template engine and code generation tool written in Python."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://cheetahtemplate.org/"
12 SOURCE="Cheetah"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/C/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/news.html#id/!d;s|.*">||;s| .*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/sys.version_info/&[:]/' \
30 cheetah/Template.py
31 sed -i 's/\(naoeu.*\\n"\))/\1, convertEOLs=False)/' \
32 cheetah/Tests/SyntaxAndOutput.py
34 python setup.py install --root=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }