wok annotate python-pydot/receipt @ rev 19296
Add AstroMenace Game
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Sat Jul 09 05:20:59 2016 -0300 (2016-07-09) |
parents | 1067bb7f1e24 |
children | 8dd8bab3f0ca |
rev | line source |
---|---|
claudinei@3417 | 1 # SliTaz package receipt. |
claudinei@3417 | 2 |
claudinei@3417 | 3 PACKAGE="python-pydot" |
claudinei@3417 | 4 SOURCE="pydot" |
claudinei@3417 | 5 VERSION="1.0.2" |
claudinei@3417 | 6 CATEGORY="development" |
claudinei@3417 | 7 SHORT_DESC="Python interface to Graphviz's dot language." |
claudinei@3417 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 9 LICENSE="MIT" |
claudinei@3417 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3417 | 11 WEB_SITE="http://code.google.com/p/pydot/" |
claudinei@3417 | 12 WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL" |
pascal@15378 | 13 |
claudinei@3418 | 14 DEPENDS="python python-pyparsing graphviz" |
pascal@17742 | 15 BUILD_DEPENDS="python" |
claudinei@3417 | 16 |
claudinei@3417 | 17 # Rules to configure and make the package. |
claudinei@3417 | 18 compile_rules() |
claudinei@3417 | 19 { |
claudinei@3417 | 20 python setup.py build |
pascal@15378 | 21 python setup.py install --root=$DESTDIR |
claudinei@3417 | 22 } |
claudinei@3417 | 23 |
claudinei@3417 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3417 | 25 genpkg_rules() |
claudinei@3417 | 26 { |
claudinei@3417 | 27 mkdir -p $fs/usr |
pascal@15378 | 28 cp -a $install/usr/lib $fs/usr |
claudinei@3417 | 29 } |
claudinei@3417 | 30 |
claudinei@3417 | 31 # Remove old package. |
claudinei@3417 | 32 post_install() |
claudinei@3417 | 33 { |
pascal@18730 | 34 [ ! -d "$1/var/lib/tazpkg/installed/pydot" ] || |
pascal@18730 | 35 rm -rf "$1/var/lib/tazpkg/installed/pydot" |
claudinei@3417 | 36 } |
al@18086 | 37 |