wok-current annotate python-reportlab/receipt @ rev 24288
fail2ban: add log4j-jndi.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 13 18:29:05 2022 +0000 (2022-01-13) |
parents | bc7cbcc495b3 |
children | 076f424196b2 |
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 |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24288 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
pascal@24288 | 23 # Rules to configure and make the package. |
claudinei@3412 | 24 # Rules to configure and make the package. |
claudinei@3412 | 25 compile_rules() |
claudinei@3412 | 26 { |
claudinei@3412 | 27 python setup.py build && |
pascal@15376 | 28 python setup.py install --root=$DESTDIR |
claudinei@3412 | 29 } |
claudinei@3412 | 30 |
claudinei@3412 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3412 | 32 genpkg_rules() |
claudinei@3412 | 33 { |
Hans-G?nter@23552 | 34 cp -a $install/usr $fs |
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 } |