wok-4.x view PyXML/receipt @ rev 2200

Add atm-tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 17:26:49 2009 +0000 (2009-02-09)
parents df8aef2144b1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="PyXML"
4 VERSION="0.8.4"
5 CATEGORY="development"
6 SHORT_DESC="XML librairies for Python"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="python"
9 BUILD_DEPENDS="python-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://pyxml.sourceforge.net/"
12 WGET_URL="http://garr.dl.sourceforge.net/sourceforge/pyxml/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 python setup.py build --with-xslt
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 PYVER=`python -c 'import sys;print(sys.version[0:3])'`
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/usr/lib/python${PYVER}/site-packages
29 cp -a $src/build/lib.linux-i686-2.5/_xmlplus $fs/usr/lib/python${PYVER}/site-packages
30 cp -a $src/build/scripts-${PYVER}/* $fs/usr/bin
31 }