wok annotate python-reportlab/receipt @ rev 19349
Up tazpkg (914)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 23 10:26:39 2016 +0200 (2016-07-23) |
parents | 1067bb7f1e24 |
children | 8dd8bab3f0ca |
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" |
pascal@15376 | 8 LICENSE="BSD" |
claudinei@3412 | 9 SOURCE="ReportLab" |
claudinei@3412 | 10 TARBALL="${SOURCE}_$VERSION.tar.gz" |
claudinei@3412 | 11 WEB_SITE="http://www.reportlab.org/" |
claudinei@3412 | 12 WGET_URL="${WEB_SITE}ftp/$TARBALL" |
pascal@15376 | 13 |
pascal@5005 | 14 DEPENDS="python freetype" |
claudinei@3412 | 15 BUILD_DEPENDS="python python-dev" |
claudinei@3412 | 16 |
claudinei@3412 | 17 # Rules to configure and make the package. |
claudinei@3412 | 18 compile_rules() |
claudinei@3412 | 19 { |
claudinei@3412 | 20 ln -s ${SOURCE}_$VERSION $src |
claudinei@3412 | 21 cd $src |
claudinei@3412 | 22 python setup.py build && |
pascal@15376 | 23 python setup.py install --root=$DESTDIR |
claudinei@3412 | 24 } |
claudinei@3412 | 25 |
claudinei@3412 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3412 | 27 genpkg_rules() |
claudinei@3412 | 28 { |
pascal@15376 | 29 cp -a $install/usr $fs |
claudinei@3412 | 30 } |
claudinei@3412 | 31 |
claudinei@3412 | 32 clean_wok() |
claudinei@3412 | 33 { |
claudinei@3412 | 34 rm -rf ${PACKAGE}_$VERSION |
claudinei@3412 | 35 } |
claudinei@3412 | 36 |
claudinei@3412 | 37 # Remove old package. |
claudinei@3412 | 38 post_install() |
claudinei@3412 | 39 { |
pascal@18730 | 40 [ ! -d "$1/var/lib/tazpkg/installed/reportlab" ] || |
pascal@18730 | 41 rm -rf "$1/var/lib/tazpkg/installed/reportlab" |
claudinei@3412 | 42 } |
al@18086 | 43 |