wok-current annotate python-pydot/receipt @ rev 25531
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 10:05:50 2023 +0000 (22 months ago) |
parents | 51ef9f5adf6d |
children |
rev | line source |
---|---|
claudinei@3417 | 1 # SliTaz package receipt. |
claudinei@3417 | 2 |
claudinei@3417 | 3 PACKAGE="python-pydot" |
Hans-G?nter@25224 | 4 VERSION="1.4.2" |
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" |
Hans-G?nter@25224 | 9 WEB_SITE="https://pypi.org/project/pydot/" |
Hans-G?nter@25224 | 10 REPOLOGY="python:pydot" |
Hans-G?nter@25224 | 11 |
pascal@24302 | 12 SOURCE="pydot" |
claudinei@3417 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23537 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 15 |
Hans-G?nter@23537 | 16 DEPENDS="graphviz python python-pyparsing" |
pascal@17742 | 17 BUILD_DEPENDS="python" |
claudinei@3417 | 18 |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24302 | 21 wget -O - $WEB_SITE 2>/dev/null | sed '/ pydot /!d;s|.*pydot ||;q' |
pascal@24288 | 22 } |
pascal@24288 | 23 |
claudinei@3417 | 24 # Rules to configure and make the package. |
claudinei@3417 | 25 compile_rules() |
claudinei@3417 | 26 { |
Hans-G?nter@23537 | 27 python setup.py build && |
pascal@15378 | 28 python setup.py install --root=$DESTDIR |
claudinei@3417 | 29 } |
claudinei@3417 | 30 |
claudinei@3417 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3417 | 32 genpkg_rules() |
claudinei@3417 | 33 { |
Hans-G?nter@25224 | 34 cook_copy_folders lib |
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 } |