wok-next diff python-prompt-toolkit/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-prompt-toolkit/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-prompt-toolkit/receipt	Wed May 13 07:41:00 2020 +0100
     1.3 @@ -1,29 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="prompt_toolkit"
     1.8  PACKAGE="python-prompt-toolkit"
     1.9 -VERSION="0.57"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Library for building powerful interactive command lines in Python."
    1.12 +VERSION="2.0.4"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Library for building powerful interactive command lines in Python"
    1.15  MAINTAINER="paul@slitaz.org"
    1.16 -WEB_SITE="https://github.com/jonathanslenders/python-prompt-toolkit"
    1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.18 +HOST_ARCH="any"
    1.19  REPOLOGY="python:prompt-toolkit"
    1.20  
    1.21 -SOURCE="prompt_toolkit"
    1.22 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.23 -WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
    1.24 +BUILD_DEPENDS="python python-six python-wcwidth \
    1.25 +python3 python3-six python3-wcwidth"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python python-six python-pygments python-wcwidth"
    1.29 -BUILD_DEPENDS="python-dev python-six python-pygments python-wcwidth"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	python setup.py install --root=$DESTDIR
    1.35 +compile_rules() {
    1.36 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 -	cp -a $install/usr $fs
    1.43 +genpkg_rules() {
    1.44 +	copy @std
    1.45 +	py="${PACKAGE%%-*}" # python/python3
    1.46 +	DEPENDS="$py $py-six $py-wcwidth"
    1.47  }
    1.48 -