wok-next diff python-cryptography/receipt @ rev 21303

updated gujin (2.8.6 -> 2.8.7)
author Hans-G?nter Theisgen
date Tue Dec 10 07:57:29 2019 +0100 (2019-12-10)
parents 92f1f4b98170
children
line diff
     1.1 --- a/python-cryptography/receipt	Wed Aug 22 16:45:51 2018 +0300
     1.2 +++ b/python-cryptography/receipt	Tue Dec 10 07:57:29 2019 +0100
     1.3 @@ -1,24 +1,35 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="cryptography"
     1.7  PACKAGE="python-cryptography"
     1.8 -VERSION="latest"
     1.9 +VERSION="2.3.1"
    1.10  CATEGORY="python"
    1.11  SHORT_DESC="Provide cryptographic recipes and primitives"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="BSD"
    1.14  WEB_SITE="https://pypi.org/project/cryptography/"
    1.15 +#HOST_ARCH
    1.16  REPOLOGY="python:cryptography"
    1.17  
    1.18 -BUILD_DEPENDS="python python-enum34 python-cffi python-asn1crypto python-idna \
    1.19 -python-six python-ipaddress"
    1.20 +BUILD_DEPENDS="python python-asn1crypto python-cffi python-enum34 python-idna \
    1.21 +python-ipaddress python-six \
    1.22 +python3 python3-asn1crypto python3-cffi python3-idna python3-six"
    1.23 +SPLIT="${PACKAGE/python/python3}:3"
    1.24  
    1.25  compile_rules() {
    1.26 -	pip install --no-compile --root=$DESTDIR cryptography
    1.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.28  }
    1.29  
    1.30  genpkg_rules() {
    1.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*cryptography-||p' $LOGS/$PACKAGE.log)
    1.32  	copy @std
    1.33 -	DEPENDS="python python-enum34 python-cffi python-asn1crypto python-idna \
    1.34 -	python-six python-ipaddress"
    1.35 +	py="${PACKAGE%%-*}" # python/python3
    1.36 +	case $PACKAGE in
    1.37 +		python-*)
    1.38 +			DEPENDS="$py $py-asn1crypto $py-cffi $py-enum34 $py-idna \
    1.39 +			$py-ipaddress $py-six"
    1.40 +			;;
    1.41 +		python3-*)
    1.42 +			DEPENDS="$py $py-asn1crypto $py-cffi $py-idna $py-six"
    1.43 +			;;
    1.44 +	esac
    1.45  }