wok-current annotate python-pyxml/receipt @ rev 12622
Up exosip (3.6.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 12:05:00 2012 +0200 (2012-04-29) |
parents | 1f1bb923a199 |
children | fd4f1e692109 |
rev | line source |
---|---|
claudinei@3414 | 1 # SliTaz package receipt. |
claudinei@3414 | 2 |
claudinei@3414 | 3 PACKAGE="python-pyxml" |
claudinei@3414 | 4 VERSION="0.8.4" |
claudinei@3414 | 5 CATEGORY="development" |
claudinei@3414 | 6 SHORT_DESC="Pythonic binding for xml..." |
claudinei@3414 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
claudinei@3414 | 8 SOURCE="PyXML" |
claudinei@3414 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3414 | 10 WEB_SITE="http://pyxml.sourceforge.net/" |
claudinei@3414 | 11 WGET_URL="$SF_MIRROR/pyxml/$TARBALL" |
pascal@11853 | 12 |
claudinei@3414 | 13 DEPENDS="python" |
pascal@11853 | 14 BUILD_DEPENDS="python python-dev" |
claudinei@3414 | 15 |
claudinei@3414 | 16 # Rules to configure and make the package. |
claudinei@3414 | 17 compile_rules() |
claudinei@3414 | 18 { |
claudinei@3414 | 19 cd $src |
slaxemulator@9674 | 20 patch -Np1 -i $stuff/fix-python2.6.patch |
claudinei@3414 | 21 python setup.py build --with-xslt |
slaxemulator@9674 | 22 python setup.py install --root=$DESTDIR |
claudinei@3414 | 23 } |
claudinei@3414 | 24 |
claudinei@3414 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3414 | 26 genpkg_rules() |
claudinei@3414 | 27 { |
claudinei@3414 | 28 cp -a $_pkg/usr $fs |
claudinei@3414 | 29 } |
claudinei@3414 | 30 |
claudinei@3414 | 31 # Remove old package. |
claudinei@3414 | 32 post_install() |
claudinei@3414 | 33 { |
slaxemulator@9674 | 34 [ -d $1/var/lib/tazpkg/installed/pyxml ] && |
claudinei@3414 | 35 rm -rf $1/var/lib/tazpkg/installed/pyxml |
claudinei@3414 | 36 } |