wok annotate python-pydot/receipt @ rev 24534
updated faac and faac-dev (1.29.9.2 -> 1.30)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 11:28:45 2022 +0100 (2022-02-23) |
parents | 1df6fa555414 |
children | f5163fecf441 |
rev | line source |
---|---|
claudinei@3417 | 1 # SliTaz package receipt. |
claudinei@3417 | 2 |
claudinei@3417 | 3 PACKAGE="python-pydot" |
Hans-G?nter@23537 | 4 VERSION="1.4.1" |
claudinei@3417 | 5 CATEGORY="development" |
claudinei@3417 | 6 SHORT_DESC="Python interface to Graphviz's dot language." |
claudinei@3417 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 8 LICENSE="MIT" |
pascal@24302 | 9 SOURCE="pydot" |
Hans-G?nter@23537 | 10 WEB_SITE="https://pypi.org/project/$SOURCE/" |
Hans-G?nter@23537 | 11 |
claudinei@3417 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23537 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 14 |
Hans-G?nter@23537 | 15 DEPENDS="graphviz python python-pyparsing" |
pascal@17742 | 16 BUILD_DEPENDS="python" |
claudinei@3417 | 17 |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24302 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/ pydot /!d;s|.*pydot ||;q' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
claudinei@3417 | 23 # Rules to configure and make the package. |
claudinei@3417 | 24 compile_rules() |
claudinei@3417 | 25 { |
Hans-G?nter@23537 | 26 python setup.py build && |
pascal@15378 | 27 python setup.py install --root=$DESTDIR |
claudinei@3417 | 28 } |
claudinei@3417 | 29 |
claudinei@3417 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3417 | 31 genpkg_rules() |
claudinei@3417 | 32 { |
claudinei@3417 | 33 mkdir -p $fs/usr |
Hans-G?nter@23537 | 34 cp -a $install/usr/lib $fs/usr |
claudinei@3417 | 35 } |
claudinei@3417 | 36 |
claudinei@3417 | 37 # Remove old package. |
claudinei@3417 | 38 post_install() |
claudinei@3417 | 39 { |
pascal@18730 | 40 [ ! -d "$1/var/lib/tazpkg/installed/pydot" ] || |
pascal@18730 | 41 rm -rf "$1/var/lib/tazpkg/installed/pydot" |
claudinei@3417 | 42 } |