wok-current annotate python-pychart/receipt @ rev 25520
created recipes for libluv and libluv-dev 1.44.2.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:44:32 2023 +0100 (23 months ago) |
parents | 51ef9f5adf6d |
children |
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" |
pascal@25012 | 9 SOURCE="Python-Chart" |
claudinei@3419 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20672 | 11 WEB_SITE="https://pypi.org/project/$SOURCE/" |
pascal@25012 | 12 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@17742 | 13 |
claudinei@3419 | 14 DEPENDS="python" |
pascal@17742 | 15 BUILD_DEPENDS="python" |
claudinei@3419 | 16 |
pascal@25012 | 17 # What is the latest version available today? |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@25012 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/ Python-Chart /!d;s|.*Python-Chart ||' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
claudinei@3419 | 23 # Rules to configure and make the package. |
claudinei@3419 | 24 compile_rules() |
claudinei@3419 | 25 { |
claudinei@3419 | 26 python setup.py build |
pascal@15378 | 27 python setup.py install --root=$DESTDIR |
claudinei@3419 | 28 } |
claudinei@3419 | 29 |
claudinei@3419 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3419 | 31 genpkg_rules() |
claudinei@3419 | 32 { |
claudinei@3419 | 33 mkdir -p $fs |
pascal@15378 | 34 cp -a $install/usr $fs |
claudinei@3419 | 35 } |
claudinei@3419 | 36 |
claudinei@3419 | 37 # Remove old package. |
claudinei@3419 | 38 post_install() |
claudinei@3419 | 39 { |
pascal@18730 | 40 [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] || |
pascal@18730 | 41 rm -rf "$1/var/lib/tazpkg/installed/pychart" |
claudinei@3419 | 42 } |
al@18086 | 43 |