wok-next diff python-reportlab/receipt @ rev 21371

updated micropython again (1.0.1 -> 1.12)
author Hans-G?nter Theisgen
date Thu Apr 16 10:04:47 2020 +0100 (2020-04-16)
parents 7506b35e1c6f
children
line diff
     1.1 --- a/python-reportlab/receipt	Mon Aug 13 00:47:17 2018 +0300
     1.2 +++ b/python-reportlab/receipt	Thu Apr 16 10:04:47 2020 +0100
     1.3 @@ -1,45 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="reportlab"
     1.8  PACKAGE="python-reportlab"
     1.9 -VERSION="2_3"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="PDF generation solution."
    1.12 +VERSION="3.5.6"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="The Reportlab Toolkit"
    1.15  MAINTAINER="pascal.bellard@slitaz.org"
    1.16  LICENSE="BSD"
    1.17 -WEB_SITE="https://pypi.org/project/reportlab/"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +#HOST_ARCH
    1.20  REPOLOGY="python:reportlab"
    1.21  
    1.22 -SOURCE="ReportLab"
    1.23 -TARBALL="${SOURCE}_$VERSION.tar.gz"
    1.24 -WGET_URL="${WEB_SITE}ftp/$TARBALL" # FIXME
    1.25 +BUILD_DEPENDS="python python-pillow  python3 python3-pillow"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python freetype"
    1.29 -BUILD_DEPENDS="python python-dev"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	ln -s ${SOURCE}_$VERSION $src
    1.35 -	cd $src
    1.36 -	python setup.py build &&
    1.37 -	python setup.py install --root=$DESTDIR
    1.38 +compile_rules() {
    1.39 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.40  }
    1.41  
    1.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 -genpkg_rules()
    1.44 -{
    1.45 -	cp -a $install/usr $fs
    1.46 +genpkg_rules() {
    1.47 +	copy @std
    1.48 +	py="${PACKAGE%%-*}" # python/python3
    1.49 +	DEPENDS="$py $py-pillow"
    1.50  }
    1.51 -
    1.52 -clean_wok()
    1.53 -{
    1.54 -	rm -rf ${PACKAGE}_$VERSION
    1.55 -}
    1.56 -
    1.57 -# Remove old package.
    1.58 -post_install()
    1.59 -{
    1.60 -	[ ! -d "$1/var/lib/tazpkg/installed/reportlab" ] ||
    1.61 -	rm -rf "$1/var/lib/tazpkg/installed/reportlab"
    1.62 -}
    1.63 -