wok annotate python-cheetah/receipt @ rev 25002

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