wok-next diff python-prettytable/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | 8b5b2a6d07b8 |
children | d5aab818505e |
line diff
1.1 --- a/python-prettytable/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-prettytable/receipt Sat Sep 22 16:05:26 2018 +0300 1.3 @@ -1,31 +1,25 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="PrettyTable" 1.8 PACKAGE="python-prettytable" 1.9 -VERSION="0.6.1" 1.10 +VERSION="0.7.2" 1.11 CATEGORY="system-tools" 1.12 -SHORT_DESC="Python library for easily displaying tabular data in ASCII." 1.13 +SHORT_DESC="Python library for easily displaying tabular data in ASCII" 1.14 MAINTAINER="pankso@slitaz.org" 1.15 LICENSE="BSD" 1.16 -WEB_SITE="https://pypi.org/projects/PrettyTable/" 1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.18 +HOST_ARCH="any" 1.19 REPOLOGY="python:prettytable" 1.20 1.21 -SOURCE="prettytable" 1.22 -TARBALL="${SOURCE}-${VERSION}.tar.bz2" 1.23 -WGET_URL="https://files.pythonhosted.org/packages/source/P/PrettyTable/$TARBALL" 1.24 +BUILD_DEPENDS="python python3" 1.25 +SPLIT="${PACKAGE/python/python3}:3" 1.26 1.27 -DEPENDS="python" 1.28 -BUILD_DEPENDS="python-dev python-distribute" 1.29 - 1.30 -# Rules to configure and make the package. 1.31 -compile_rules() 1.32 -{ 1.33 - python setup.py install --root="$DESTDIR" 1.34 +compile_rules() { 1.35 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.36 } 1.37 1.38 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 -genpkg_rules() 1.40 -{ 1.41 - mkdir -p $fs/usr 1.42 - cp -a $install/usr/lib $fs/usr 1.43 +genpkg_rules() { 1.44 + copy @std 1.45 + py="${PACKAGE%%-*}" # python/python3 1.46 + DEPENDS="$py" 1.47 } 1.48 -