wok-6.x annotate python-reportlab/receipt @ rev 18086

Rebuild Python packages to remove "*.pyc" files from packages files.lists (part last)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 23 16:17:14 2015 +0300 (2015-05-23)
parents bf4a09ef1d2e
children 1067bb7f1e24
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 {
claudinei@3412 40 rm -rf $1/var/lib/tazpkg/installed/reportlab
claudinei@3412 41 }
al@18086 42