wok-stable annotate PyXML/receipt @ rev 1269
slitaz-boot-scripts: declare config files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 18 11:36:08 2008 +0000 (2008-08-18) |
parents | |
children | 03a799424aaa |
rev | line source |
---|---|
erjo@1045 | 1 # SliTaz package receipt. |
erjo@1045 | 2 |
erjo@1045 | 3 PACKAGE="PyXML" |
erjo@1045 | 4 VERSION="0.8.4" |
erjo@1045 | 5 CATEGORY="developpement" |
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 |