wok-6.x view python-pyxml/receipt @ rev 9671
python-pyxml: apply archlinux #14782 bug fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 16:32:54 2011 +0200 (2011-05-02) |
parents | 28c34e01f8c6 |
children | 1f1bb923a199 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pyxml"
4 VERSION="0.8.4"
5 CATEGORY="development"
6 SHORT_DESC="Pythonic binding for xml..."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="PyXML"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://pyxml.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/pyxml/$TARBALL"
12 DEPENDS="python"
13 BUILD_DEPENDS="python"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python setup.py build --with-xslt
20 python setup.py install --root=$PWD/_pkg
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 cp -a $_pkg/usr $fs
27 # Apply https://bugs.archlinux.org/task/14782 fix
28 sed -i 's/as /asp /;s/as,/asp,' \
29 $fs/usr/lib/python*/site-packages/_xmlplus/xpath/ParsedAbbreviated*
30 }
32 # Remove old package.
33 post_install()
34 {
35 rm -rf $1/var/lib/tazpkg/installed/pyxml
36 }