wok-next diff python-pypubsub/receipt @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 270c09f6a958
children
line diff
     1.1 --- a/python-pypubsub/receipt	Thu Aug 23 19:56:09 2018 +0300
     1.2 +++ b/python-pypubsub/receipt	Tue Sep 01 10:44:52 2020 +0000
     1.3 @@ -1,23 +1,28 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="PyPubSub"
     1.7  PACKAGE="python-pypubsub"
     1.8 -VERSION="latest"
     1.9 +VERSION="4.0.0"
    1.10  CATEGORY="python"
    1.11  SHORT_DESC="Python Publish-Subscribe Package"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="BSD"
    1.14 -WEB_SITE="https://pypi.org/project/PyPubSub/"
    1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.16  HOST_ARCH="any"
    1.17  REPOLOGY="python:pypubsub"
    1.18  
    1.19 -BUILD_DEPENDS="python python-typing"
    1.20 +BUILD_DEPENDS="python-dev python-typing  python3-dev"
    1.21 +SPLIT="${PACKAGE/python/python3}:3"
    1.22  
    1.23  compile_rules() {
    1.24 -	pip install --no-compile --root=$DESTDIR PyPubSub
    1.25 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.26  }
    1.27  
    1.28  genpkg_rules() {
    1.29 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyPubSub-||p' $LOGS/$PACKAGE.log)
    1.30  	copy @std
    1.31 -	DEPENDS="python python-typing"
    1.32 +	py="${PACKAGE%%-*}" # python/python3
    1.33 +	case $PACKAGE in
    1.34 +		python-*)  DEPENDS="$py $py-typing";;
    1.35 +		python3-*) DEPENDS="$py";;
    1.36 +	esac
    1.37  }