wok-4.x annotate 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 |
rev | line source |
---|---|
erjo@1045 | 1 # SliTaz package receipt. |
erjo@1045 | 2 |
erjo@1045 | 3 PACKAGE="PyXML" |
erjo@1045 | 4 VERSION="0.8.4" |
pascal@1423 | 5 CATEGORY="development" |
erjo@1045 | 6 SHORT_DESC="XML librairies for Python" |
erjo@1045 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@1045 | 8 DEPENDS="python" |
erjo@1045 | 9 BUILD_DEPENDS="python-dev" |
erjo@1045 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@1045 | 11 WEB_SITE="http://pyxml.sourceforge.net/" |
erjo@1045 | 12 WGET_URL="http://garr.dl.sourceforge.net/sourceforge/pyxml/$TARBALL" |
erjo@1045 | 13 |
erjo@1045 | 14 # Rules to configure and make the package. |
erjo@1045 | 15 compile_rules() |
erjo@1045 | 16 { |
erjo@1045 | 17 cd $src |
erjo@1045 | 18 python setup.py build --with-xslt |
erjo@1045 | 19 } |
erjo@1045 | 20 |
erjo@1045 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1045 | 22 genpkg_rules() |
erjo@1045 | 23 { |
erjo@1045 | 24 PYVER=`python -c 'import sys;print(sys.version[0:3])'` |
erjo@1045 | 25 |
erjo@1045 | 26 mkdir -p $fs/usr/bin |
erjo@1045 | 27 mkdir -p $fs/usr/lib/python${PYVER}/site-packages |
erjo@1045 | 28 |
erjo@1045 | 29 cp -a $src/build/lib.linux-i686-2.5/_xmlplus $fs/usr/lib/python${PYVER}/site-packages |
erjo@1045 | 30 cp -a $src/build/scripts-${PYVER}/* $fs/usr/bin |
erjo@1045 | 31 } |
erjo@1045 | 32 |
erjo@1045 | 33 |