wok-next annotate python-pychart/receipt @ rev 20959

Fix minicom
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 06 11:27:41 2018 +0200 (2018-09-06)
parents 92698cd69f34
children c9a7a7b42a86
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"
al@20909 9 WEB_SITE="https://pypi.org/project/PyChart/"
al@20887 10 REPOLOGY="python:pychart"
al@20887 11
claudinei@3419 12 SOURCE="PyChart"
claudinei@3419 13 TARBALL="$SOURCE-$VERSION.tar.gz"
al@20909 14 WGET_URL="http://download.gna.org/pychart/$TARBALL" # FIXME
pascal@17742 15
claudinei@3419 16 DEPENDS="python"
pascal@17742 17 BUILD_DEPENDS="python"
claudinei@3419 18
claudinei@3419 19 # Rules to configure and make the package.
claudinei@3419 20 compile_rules()
claudinei@3419 21 {
claudinei@3419 22 python setup.py build
pascal@15378 23 python setup.py install --root=$DESTDIR
claudinei@3419 24 }
claudinei@3419 25
claudinei@3419 26 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3419 27 genpkg_rules()
claudinei@3419 28 {
claudinei@3419 29 mkdir -p $fs
pascal@15378 30 cp -a $install/usr $fs
claudinei@3419 31 }
claudinei@3419 32
claudinei@3419 33 # Remove old package.
claudinei@3419 34 post_install()
claudinei@3419 35 {
pascal@18730 36 [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
pascal@18730 37 rm -rf "$1/var/lib/tazpkg/installed/pychart"
claudinei@3419 38 }
al@18086 39