wok view python-pydot/receipt @ rev 25224

updated python-pydot (1.4.1 -> 1.4.2)
author Hans-G?nter Theisgen
date Wed Jul 13 16:29:49 2022 +0100 (22 months ago)
parents 51ef9f5adf6d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pydot"
4 VERSION="1.4.2"
5 CATEGORY="development"
6 SHORT_DESC="Python interface to Graphviz's dot language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/pydot/"
10 REPOLOGY="python:pydot"
12 SOURCE="pydot"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="graphviz python python-pyparsing"
17 BUILD_DEPENDS="python"
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | sed '/ pydot /!d;s|.*pydot ||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py build &&
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cook_copy_folders lib
35 }
37 # Remove old package.
38 post_install()
39 {
40 [ ! -d "$1/var/lib/tazpkg/installed/pydot" ] ||
41 rm -rf "$1/var/lib/tazpkg/installed/pydot"
42 }