wok-4.x annotate python-reportlab/receipt @ rev 5423

Up bind (9.7.0-P1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 04 15:27:38 2010 +0200 (2010-05-04)
parents 983e91358a71
children
rev   line source
claudinei@3412 1 # SliTaz package receipt.
claudinei@3412 2
claudinei@3412 3 PACKAGE="python-reportlab"
claudinei@3412 4 VERSION="2_3"
claudinei@3412 5 CATEGORY="development"
claudinei@3412 6 SHORT_DESC="PDF generation solution."
claudinei@3412 7 MAINTAINER="pascal.bellard@slitaz.org"
claudinei@3412 8 SOURCE="ReportLab"
claudinei@3412 9 TARBALL="${SOURCE}_$VERSION.tar.gz"
claudinei@3412 10 WEB_SITE="http://www.reportlab.org/"
claudinei@3412 11 WGET_URL="${WEB_SITE}ftp/$TARBALL"
pascal@5005 12 DEPENDS="python freetype"
claudinei@3412 13 BUILD_DEPENDS="python python-dev"
claudinei@3412 14
claudinei@3412 15 # Rules to configure and make the package.
claudinei@3412 16 compile_rules()
claudinei@3412 17 {
claudinei@3412 18 ln -s ${SOURCE}_$VERSION $src
claudinei@3412 19 cd $src
claudinei@3412 20 python setup.py build &&
claudinei@3412 21 python setup.py install --root=$PWD/_pkg
claudinei@3412 22 }
claudinei@3412 23
claudinei@3412 24 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3412 25 genpkg_rules()
claudinei@3412 26 {
claudinei@3412 27 cp -a $_pkg/usr $fs
claudinei@3412 28 }
claudinei@3412 29
claudinei@3412 30 clean_wok()
claudinei@3412 31 {
claudinei@3412 32 rm -rf ${PACKAGE}_$VERSION
claudinei@3412 33 }
claudinei@3412 34
claudinei@3412 35 # Remove old package.
claudinei@3412 36 post_install()
claudinei@3412 37 {
claudinei@3412 38 rm -rf $1/var/lib/tazpkg/installed/reportlab
claudinei@3412 39 }