wok-next diff python-dateutil/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 | 9b3461bf373c |
children |
line diff
1.1 --- a/python-dateutil/receipt Fri Jul 13 13:52:56 2018 +0300 1.2 +++ b/python-dateutil/receipt Thu Jun 25 09:49:25 2020 +0100 1.3 @@ -1,34 +1,25 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="python-dateutil" 1.8 PACKAGE="python-dateutil" 1.9 -VERSION="1.5" 1.10 +VERSION="2.7.3" 1.11 CATEGORY="development" 1.12 SHORT_DESC="Extensions to the standart python 2.3+ datetime module" 1.13 MAINTAINER="claudinei@slitaz.org" 1.14 LICENSE="PSL" 1.15 -WEB_SITE="http://labix.org/python-dateutil" 1.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.17 +HOST_ARCH="any" 1.18 REPOLOGY="python:dateutil" 1.19 1.20 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.21 -WGET_URL="http://labix.org/download/$PACKAGE/$TARBALL" 1.22 +BUILD_DEPENDS="python python-six python3 python3-six" 1.23 +SPLIT="${PACKAGE/python/python3}:3" 1.24 1.25 -DEPENDS="python" 1.26 -BUILD_DEPENDS="python python-dev" 1.27 - 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 - cd $src 1.32 - python setup.py install --root=$DESTDIR 1.33 +compile_rules() { 1.34 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.35 } 1.36 1.37 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 -genpkg_rules() 1.39 -{ 1.40 - for file in `find $install | grep 'pyc$'`; do 1.41 - rm $file 1.42 - done 1.43 - mkdir -p $fs/usr 1.44 - cp -a $install/usr/lib $fs/usr 1.45 +genpkg_rules() { 1.46 + copy @std 1.47 + py=${PACKAGE%%-*} # python/python3 1.48 + DEPENDS="$py $py-six" 1.49 } 1.50 -