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