wok-next annotate python-cheetah/receipt @ rev 16356
python-cheetah: add python 2.7 fixes
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 13 16:52:40 2014 +0000 (2014-04-13) |
parents | fd4f1e692109 |
children | 16df76e1fc6a |
rev | line source |
---|---|
pankso@3375 | 1 # SliTaz package receipt. |
pankso@3375 | 2 |
pankso@3375 | 3 PACKAGE="python-cheetah" |
slaxemulator@6603 | 4 VERSION="2.4.3" |
pankso@3375 | 5 CATEGORY="development" |
pankso@3375 | 6 SHORT_DESC="Cheetah is a template engine and code generation tool written in Python." |
pankso@3375 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="MIT" |
pankso@3375 | 9 SOURCE="Cheetah" |
pankso@3375 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@3375 | 11 WEB_SITE="http://www.cheetahtemplate.org/" |
slaxemulator@6603 | 12 WGET_URL="http://pypi.python.org/packages/source/C/$SOURCE/$TARBALL" |
pascal@15378 | 13 TAGS="python" |
pascal@15378 | 14 |
pankso@3375 | 15 DEPENDS="python" |
pankso@3375 | 16 BUILD_DEPENDS="python python-dev" |
pankso@3375 | 17 |
pankso@3375 | 18 # Rules to configure and make the package. |
pankso@3375 | 19 compile_rules() |
pankso@3375 | 20 { |
pankso@3375 | 21 cd $src |
pascal@16356 | 22 sed -i 's/sys.version_info/&[:]/' cheetah/Template.py |
pascal@16356 | 23 sed -i 's/\(naoeu.*\\n"\))/\1, convertEOLs=False)/' cheetah/Tests/SyntaxAndOutput.py |
pascal@15378 | 24 python setup.py install --root=$DESTDIR |
pankso@3375 | 25 } |
pankso@3375 | 26 |
pankso@3375 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3375 | 28 genpkg_rules() |
pankso@3375 | 29 { |
pascal@15378 | 30 cp -a $install/usr $fs |
pankso@3375 | 31 } |