# SliTaz package receipt.

PACKAGE="python-pyxml"
VERSION="0.8.4"
CATEGORY="development"
SHORT_DESC="Pythonic binding for xml..."
MAINTAINER="pascal.bellard@slitaz.org"
SOURCE="PyXML"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://pyxml.sourceforge.net/"
WGET_URL="$SF_MIRROR/pyxml/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python python-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	patch -Np1 -i $stuff/fix-python2.6.patch
	python setup.py build --with-xslt
	python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}

# Remove old package.
post_install()
{
	[ -d $1/var/lib/tazpkg/installed/pyxml ] &&
	rm -rf $1/var/lib/tazpkg/installed/pyxml
}