wok-next diff python-coverage/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 add7e3ca3657
children d5aab818505e
line diff
     1.1 --- a/python-coverage/receipt	Fri Aug 31 17:13:06 2018 +0300
     1.2 +++ b/python-coverage/receipt	Sat Sep 22 16:05:26 2018 +0300
     1.3 @@ -1,22 +1,27 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="coverage"
     1.7  PACKAGE="python-coverage"
     1.8 -VERSION="latest"
     1.9 +VERSION="4.5.1"
    1.10  CATEGORY="python"
    1.11  SHORT_DESC="Code coverage measurement for Python"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="Apache2"
    1.14 -WEB_SITE="https://pypi.org/project/coverage/"
    1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.16 +#HOST_ARCH=""
    1.17  REPOLOGY="python:coverage"
    1.18  
    1.19 -BUILD_DEPENDS="python"
    1.20 +BUILD_DEPENDS="python python3"
    1.21 +SPLIT="${PACKAGE/python/python3}:3"
    1.22  
    1.23  compile_rules() {
    1.24 -	pip install --no-compile --root=$DESTDIR coverage
    1.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.26 +
    1.27 +	find $install -type f -name '*.png' -exec chmod a-x '{}' \;
    1.28  }
    1.29  
    1.30  genpkg_rules() {
    1.31 -	VERSION=$(sed -n '/^Successfully installed/ s|.*coverage-||p' $LOGS/$PACKAGE.log)
    1.32  	copy @std
    1.33 -	DEPENDS="python"
    1.34 +	py="${PACKAGE%%-*}" # python/python3
    1.35 +	DEPENDS="$py"
    1.36  }