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

plop: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 10:36:59 2023 +0000 (21 months ago)
parents 1df6fa555414
children
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@24383 18 # What is the latest version available today?
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24383 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 22 }
pascal@24288 23
pascal@24288 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 }