wok-next diff python-openid/receipt @ rev 21529

updated buildroot (2014.08 -> 2020.05)
author Hans-G?nter Theisgen
date Sat Jun 20 16:34:10 2020 +0100 (2020-06-20)
parents 9b3461bf373c
children
line diff
     1.1 --- a/python-openid/receipt	Fri Jul 13 13:52:56 2018 +0300
     1.2 +++ b/python-openid/receipt	Sat Jun 20 16:34:10 2020 +0100
     1.3 @@ -1,30 +1,37 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="python-openid" # and python3-openid
     1.8  PACKAGE="python-openid"
     1.9 -VERSION="2.2.4"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="OpenID libraries for Python."
    1.12 +VERSION="3.1.0"  # Python3 package python3-openid version
    1.13 +VERSION2="2.2.5" # Python2 package python-openid version
    1.14 +CATEGORY="python"
    1.15 +SHORT_DESC="OpenID support for servers and consumers"
    1.16  MAINTAINER="pascal.bellard@slitaz.org"
    1.17  LICENSE="Apache"
    1.18 -WEB_SITE="http://www.janrain.com/openid-enabled/"
    1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.20 +HOST_ARCH="any"
    1.21  REPOLOGY="python:openid"
    1.22  
    1.23 -TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.24 -WGET_URL="http://ftp.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
    1.25 +BUILD_DEPENDS="python python3 python3-defusedxml"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python"
    1.29 -BUILD_DEPENDS="python-dev python"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	python setup.py build &&
    1.35 -	python setup.py install --root=$DESTDIR
    1.36 +compile_rules() {
    1.37 +	case $SET in
    1.38 +		'') VERSION="$VERSION2";;
    1.39 +	esac
    1.40 +	pip$SET install --no-compile --root=$install python$SET-openid==$VERSION
    1.41  }
    1.42  
    1.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 -genpkg_rules()
    1.45 -{
    1.46 -	mkdir -p $fs
    1.47 -	cp -a $install/usr $fs
    1.48 +genpkg_rules() {
    1.49 +	copy @std
    1.50 +	py="${PACKAGE%%-*}" # python/python3
    1.51 +	case $PACKAGE in
    1.52 +		python-*)
    1.53 +			VERSION="$VERSION2"
    1.54 +			DEPENDS="$py"
    1.55 +			;;
    1.56 +		python3-*)
    1.57 +			DEPENDS="$py $py-defusedxml"
    1.58 +			;;
    1.59 +	esac
    1.60  }