wok-next diff python-pastescript/receipt @ rev 20972

Improve Python packages: update, also provide Python3 packages where available
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 22 16:05:26 2018 +0300 (2018-09-22)
parents 8b5b2a6d07b8
children d5aab818505e
line diff
     1.1 --- a/python-pastescript/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-pastescript/receipt	Sat Sep 22 16:05:26 2018 +0300
     1.3 @@ -1,30 +1,27 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="PasteScript"
     1.8  PACKAGE="python-pastescript"
     1.9 -VERSION="1.7.3"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="A pluggable command-line frontend, including commands to setup package file layouts."
    1.12 +VERSION="2.0.2"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="A pluggable command-line frontend, including commands to setup \
    1.15 +package file layouts"
    1.16  MAINTAINER="pankso@slitaz.org"
    1.17  LICENSE="MIT"
    1.18 -WEB_SITE="http://pythonpaste.org/"
    1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.20 +HOST_ARCH="any"
    1.21  REPOLOGY="python:pastescript"
    1.22  
    1.23 -SOURCE="PasteScript"
    1.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.25 -WGET_URL="https://files.pythonhosted.org/packages/source/P/$SOURCE/$TARBALL"
    1.26 -TAGS="python"
    1.27 +BUILD_DEPENDS="python python-paste python-pastedeploy python-six \
    1.28 +python3 python3-paste python3-pastedeploy python3-six"
    1.29 +SPLIT="${PACKAGE/python/python3}:3"
    1.30  
    1.31 -DEPENDS="python python-paste python-pastedeploy"
    1.32 -BUILD_DEPENDS="python"
    1.33 -
    1.34 -# Rules to configure and make the package.
    1.35 -compile_rules()
    1.36 -{
    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-paste $py-pastedeploy $py-six"
    1.50  }