wok annotate python-reportlab/receipt @ rev 24040
Up zstd (1.4.9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 13 17:03:24 2021 +0000 (2021-04-13) |
parents | 8dd8bab3f0ca |
children | 1df6fa555414 |
rev | line source |
---|---|
claudinei@3412 | 1 # SliTaz package receipt. |
claudinei@3412 | 2 |
claudinei@3412 | 3 PACKAGE="python-reportlab" |
Hans-G?nter@23552 | 4 VERSION="3.5.42" |
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" |
Hans-G?nter@23552 | 9 WEB_SITE="https://pypi.org/project/reportlab/" |
pascal@15376 | 10 |
Hans-G?nter@23552 | 11 SOURCE="reportlab" |
Hans-G?nter@23552 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23552 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
Hans-G?nter@23552 | 14 |
Hans-G?nter@23552 | 15 DEPENDS="freetype python" |
claudinei@3412 | 16 BUILD_DEPENDS="python python-dev" |
claudinei@3412 | 17 |
claudinei@3412 | 18 # Rules to configure and make the package. |
claudinei@3412 | 19 compile_rules() |
claudinei@3412 | 20 { |
claudinei@3412 | 21 python setup.py build && |
pascal@15376 | 22 python setup.py install --root=$DESTDIR |
claudinei@3412 | 23 } |
claudinei@3412 | 24 |
claudinei@3412 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3412 | 26 genpkg_rules() |
claudinei@3412 | 27 { |
Hans-G?nter@23552 | 28 cp -a $install/usr $fs |
claudinei@3412 | 29 } |
claudinei@3412 | 30 |
claudinei@3412 | 31 # Remove old package. |
claudinei@3412 | 32 post_install() |
claudinei@3412 | 33 { |
pascal@18730 | 34 [ ! -d "$1/var/lib/tazpkg/installed/reportlab" ] || |
pascal@18730 | 35 rm -rf "$1/var/lib/tazpkg/installed/reportlab" |
claudinei@3412 | 36 } |