wok-next diff python-pychart/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 7506b35e1c6f |
children |
line diff
1.1 --- a/python-pychart/receipt Mon Aug 13 00:47:17 2018 +0300 1.2 +++ b/python-pychart/receipt Sat Nov 21 14:32:44 2020 +0100 1.3 @@ -1,39 +1,26 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +# pypi.org didn't provide downloads for PyChart, but we can use Python-Chart 1.8 +ORIGIN="Python-Chart" 1.9 PACKAGE="python-pychart" 1.10 VERSION="1.39" 1.11 -CATEGORY="development" 1.12 -SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG." 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG" 1.15 MAINTAINER="pascal.bellard@slitaz.org" 1.16 -LICENSE="GPL" 1.17 -WEB_SITE="https://pypi.org/project/PyChart/" 1.18 +LICENSE="GPL2" 1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.20 +HOST_ARCH="any" 1.21 REPOLOGY="python:pychart" 1.22 1.23 -SOURCE="PyChart" 1.24 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.25 -WGET_URL="http://download.gna.org/pychart/$TARBALL" # FIXME 1.26 +BUILD_DEPENDS="python python3" 1.27 +SPLIT="${PACKAGE/python/python3}:3" 1.28 1.29 -DEPENDS="python" 1.30 -BUILD_DEPENDS="python" 1.31 - 1.32 -# Rules to configure and make the package. 1.33 -compile_rules() 1.34 -{ 1.35 - python setup.py build 1.36 - python setup.py install --root=$DESTDIR 1.37 +compile_rules() { 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 1.45 - cp -a $install/usr $fs 1.46 +genpkg_rules() { 1.47 + copy @std 1.48 + py="${PACKAGE%%-*}" # python/python3 1.49 + DEPENDS="$py" 1.50 } 1.51 - 1.52 -# Remove old package. 1.53 -post_install() 1.54 -{ 1.55 - [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] || 1.56 - rm -rf "$1/var/lib/tazpkg/installed/pychart" 1.57 -} 1.58 -