wok-next diff python-futures/receipt @ rev 21443

updated sarg (2.3.1 -> 2.4.0)
author Hans-G?nter Theisgen
date Tue May 05 16:34:52 2020 +0100 (2020-05-05)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-futures/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-futures/receipt	Tue May 05 16:34:52 2020 +0100
     1.3 @@ -1,23 +1,30 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="futures"
     1.7  PACKAGE="python-futures"
     1.8 -ORIGIN="futures"
     1.9 -VERSION="latest"
    1.10 +VERSION="3.2.0"  # for Python2
    1.11 +VERSION3="3.1.1" # for Python3
    1.12  CATEGORY="python"
    1.13  SHORT_DESC="Backport of the concurrent.futures package from Python 3"
    1.14  MAINTAINER="al.bobylev@gmail.com"
    1.15  LICENSE="PSF"
    1.16  WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.17 -REPOLOGY="${PACKAGE/-/:}"
    1.18 +HOST_ARCH="any"
    1.19 +REPOLOGY="python:futures"
    1.20  
    1.21 -BUILD_DEPENDS="python"
    1.22 +BUILD_DEPENDS="python python3"
    1.23 +SPLIT="${PACKAGE/python/python3}:3"
    1.24  
    1.25  compile_rules() {
    1.26 -	pip install --no-compile --root=$DESTDIR $ORIGIN
    1.27 +	case $SET in
    1.28 +		3) VERSION="$VERSION3";;
    1.29 +	esac
    1.30 +
    1.31 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.32  }
    1.33  
    1.34  genpkg_rules() {
    1.35 -	VERSION=$(sed -n "/^Successfully installed/ s|.*$ORIGIN-||p" $LOGS/$PACKAGE.log)
    1.36  	copy @std
    1.37 -	DEPENDS="python"
    1.38 +	py="${PACKAGE%%-*}" # python/python3
    1.39 +	DEPENDS="$py"
    1.40  }