wok-next diff python-werkzeug/receipt @ rev 21449

updated slock (1.1 -> 1.4)
author Hans-G?nter Theisgen
date Thu May 07 07:51:56 2020 +0100 (2020-05-07)
parents 92698cd69f34
children
line diff
     1.1 --- a/python-werkzeug/receipt	Fri Jul 13 17:30:55 2018 +0300
     1.2 +++ b/python-werkzeug/receipt	Thu May 07 07:51:56 2020 +0100
     1.3 @@ -1,37 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="Werkzeug"
     1.8  PACKAGE="python-werkzeug"
     1.9 -GITHASH="8c085bba3d0abe1139fd84bdb542efdb579b0205"
    1.10 -VERSION=${GITHASH:0:7}
    1.11 -CATEGORY="development"
    1.12 -SHORT_DESC="WSGI utility modules"
    1.13 +VERSION="0.14.1"
    1.14 +CATEGORY="python"
    1.15 +SHORT_DESC="The comprehensive WSGI web application library"
    1.16  MAINTAINER="pascal.bellard@slitaz.org"
    1.17  LICENSE="BSD"
    1.18 -WEB_SITE="http://werkzeug.pocoo.org/"
    1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.20 +HOST_ARCH="any"
    1.21  REPOLOGY="python:werkzeug"
    1.22  
    1.23 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.24 -GIT_URL="https://github.com/mitsuhiko/werkzeug/tarball/$GITHASH"
    1.25 +BUILD_DEPENDS="python python3"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python"
    1.29 -BUILD_DEPENDS="python python-dev"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	[ -s $SRC/$TARBALL ] ||
    1.35 -		wget --no-check-certificate -O $SRC/$TARBALL $GIT_URL
    1.36 -	if [ ! -s $src ]; then
    1.37 -		mkdir -p $(dirname $src)
    1.38 -		tar xzf $SRC/$TARBALL &&
    1.39 -		mv mitsuhiko-werkzeug-$VERSION $src
    1.40 -	fi
    1.41 -	cd $src
    1.42 -	python setup.py install --root=$DESTDIR
    1.43 +compile_rules() {
    1.44 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.45  }
    1.46  
    1.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 -genpkg_rules()
    1.49 -{
    1.50 -	cp -a $install/usr $fs
    1.51 +genpkg_rules() {
    1.52 +	copy @std
    1.53 +	py="${PACKAGE%%-*}" # python/python3
    1.54 +	DEPENDS="$py"
    1.55  }