wok view python-pychart/receipt @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (23 months ago)
parents 1df6fa555414
children affc6fdda56c
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pychart"
4 VERSION="1.39"
5 CATEGORY="development"
6 SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="PyChart"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 WGET_URL="http://download.gna.org/pychart/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | sed '/ PyChart /!d;s|.*PyChart ||'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 python setup.py build
26 python setup.py install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs
33 cp -a $install/usr $fs
34 }
36 # Remove old package.
37 post_install()
38 {
39 [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
40 rm -rf "$1/var/lib/tazpkg/installed/pychart"
41 }