wok-next diff python-restkit/receipt @ rev 21608
updated dvtm (0.9 -> 0.15)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 09:49:25 2020 +0100 (2020-06-25) |
parents | 92698cd69f34 |
children |
line diff
1.1 --- a/python-restkit/receipt Fri Jul 13 17:30:55 2018 +0300 1.2 +++ b/python-restkit/receipt Thu Jun 25 09:49:25 2020 +0100 1.3 @@ -1,31 +1,28 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="restkit" 1.8 PACKAGE="python-restkit" 1.9 -VERSION="4.2.1" 1.10 -CATEGORY="development" 1.11 -SHORT_DESC="An HTTP resource kit for Python" 1.12 +VERSION="4.2.2" 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="Python REST kit" 1.15 MAINTAINER="claudinei@slitaz.org" 1.16 LICENSE="MIT" 1.17 -WEB_SITE="http://restkit.readthedocs.org" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +HOST_ARCH="any" 1.20 REPOLOGY="python:restkit" 1.21 1.22 -SOURCE="restkit" 1.23 -TARBALL="$SOURCE-$VERSION.zip" 1.24 -WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip" 1.25 +BUILD_DEPENDS="python-dev python-http-parser python-socketpool \ 1.26 +python3-dev python3-http-parser python3-socketpool" 1.27 +SPLIT="${PACKAGE/python/python3}:3" 1.28 1.29 -DEPENDS="python python-http-parser python-socketpool" 1.30 -BUILD_DEPENDS="python-dev" 1.31 +compile_rules() { 1.32 + fix utf-8; export LC_ALL=en_US.UTF-8 1.33 1.34 -# Rules to configure and make the package. 1.35 -compile_rules() 1.36 -{ 1.37 - python setup.py install --root=$DESTDIR 1.38 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.39 } 1.40 1.41 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 -genpkg_rules() 1.43 -{ 1.44 - mkdir -p $fs/usr 1.45 - rm -rf $install/usr/restkit 1.46 - cp -a $install/usr $fs 1.47 +genpkg_rules() { 1.48 + copy @std 1.49 + py="${PACKAGE%%-*}" # python/python3 1.50 + DEPENDS="$py $py-http-parser $py-socketpool" 1.51 }