wok-next diff python-pypdf/receipt @ rev 21623

updated elfutils (0.175 -> 0.180)
author Hans-G?nter Theisgen
date Thu Jun 25 14:49:28 2020 +0100 (2020-06-25)
parents 92698cd69f34
children
line diff
     1.1 --- a/python-pypdf/receipt	Fri Jul 13 17:30:55 2018 +0300
     1.2 +++ b/python-pypdf/receipt	Thu Jun 25 14:49:28 2020 +0100
     1.3 @@ -1,37 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="pyPdf"
     1.8  PACKAGE="python-pypdf"
     1.9 -VERSION="1.12"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="A Pure-Python library built as a PDF tookit."
    1.12 +VERSION="1.13"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="PDF toolkit"
    1.15  MAINTAINER="claudinei@slitaz.org"
    1.16  LICENSE="BSD"
    1.17 -WEB_SITE="http://pybrary.net/pyPdf"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +HOST_ARCH="any"
    1.20  REPOLOGY="python:pypdf"
    1.21  
    1.22 -SOURCE="pyPdf"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="$WEB_SITE/$TARBALL"
    1.25 +BUILD_DEPENDS="python-dev python3-dev"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python"
    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 -	python setup.py install --root=$DESTDIR
    1.35 +compile_rules() {
    1.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 -	mkdir -p $fs/usr
    1.43 -	cp -a $install/usr $fs
    1.44 +genpkg_rules() {
    1.45 +	copy @std
    1.46 +	py="${PACKAGE%%-*}" # python/python3
    1.47 +	DEPENDS="$py"
    1.48  }
    1.49 -
    1.50 -# Remove old package.
    1.51 -post_install()
    1.52 -{
    1.53 -	[ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] ||
    1.54 -	rm -rf "$1/var/lib/tazpkg/installed/pypdf"
    1.55 -}