diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-27 14:58:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-27 14:58:38 +0000 |
commit | 8f4c141782d853e0136e02409f34a3bf538ab110 (patch) | |
tree | 0f5936ce57bd6a955b31b9c87e65c61c8b248e60 /testing/graphviz/APKBUILD | |
parent | 83521e400736c0af1ebfc3b828bc4ecd4d97f5c7 (diff) | |
download | aports-8f4c141782d853e0136e02409f34a3bf538ab110.tar.bz2 aports-8f4c141782d853e0136e02409f34a3bf538ab110.tar.xz |
testing/graphviz: new aport
Graph Visualization Tools
http://www.graphviz.org/
Diffstat (limited to 'testing/graphviz/APKBUILD')
-rw-r--r-- | testing/graphviz/APKBUILD | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/testing/graphviz/APKBUILD b/testing/graphviz/APKBUILD new file mode 100644 index 0000000000..23fa059b93 --- /dev/null +++ b/testing/graphviz/APKBUILD @@ -0,0 +1,95 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=graphviz +pkgver=2.28.0 +pkgrel=0 +pkgdesc="Graph Visualization Tools" +url="http://www.graphviz.org/" +arch="all" +license="EPL" +depends="" +depends_dev="zlib-dev libpng-dev jpeg-dev expat-dev freetype-dev bison m4 flex + fontconfig-dev libtool libsm-dev libxext-dev cairo-dev pango-dev + gmp-dev lua-dev gtk+-dev swig python-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py lua-$pkgname:_lua + $pkgname-gtk $pkgname-graphs" +source="http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-$pkgver.tar.gz + 0001-clone-nameclash.patch" + +_builddir="$srcdir"/graphviz-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-x \ + --disable-static \ + --disable-dependency-tracking \ + --enable-lua=yes \ + --without-mylibgd \ + --with-ipsepcola \ + --with-pangocairo \ + --with-gdk-pixbuf \ + --with-png \ + --with-jpeg \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" \ + pkgconfigdir=/usr/lib/pkgconfig \ + install || return 1 + mkdir -p "$pkgdir"/usr/share/doc + mv "$pkgdir"/usr/share/graphviz/doc "$pkgdir"/usr/share/doc/graphviz || return 1 + rm -f "$pkgdir"/usr/lib/*.la \ + "$pkgdir"/usr/lib/graphviz/*.la \ + "$pkgdir"/usr/lib/graphviz/*/*.la \ + || return 1 +} + +py() { + pkgdesc="Python extension for graphviz" + mkdir -p "$subpkgdir"/usr/lib/graphviz \ + "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/lib/graphviz/python* \ + "$subpkgdir"/usr/lib/graphviz || return 1 + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +_lua() { + pkgdesc="Lua extension for graphviz" + mkdir -p "$subpkgdir"/usr/lib/graphviz \ + "$subpkgdir"/usr/lib/lua || return 1 + mv "$pkgdir"/usr/lib/graphviz/lua \ + "$subpkgdir"/usr/lib/graphviz || return 1 + mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib/ +} + +gtk() { + pkgdesc="Gtk extension for graphviz" + mkdir -p "$subpkgdir"/usr/lib/graphviz || return 1 + mv "$pkgdir"/usr/lib/graphviz/libgvplugin_g?k* \ + "$subpkgdir"/usr/lib/graphviz || return 1 +} + +graphs() { + pkgdesc="Demo graphs for graphviz" + mkdir -p "$subpkgdir"/usr/share/graphviz || return 1 + mv "$pkgdir"/usr/share/graphviz/graphs \ + "$subpkgdir"/usr/share/graphviz/ +} +md5sums="8d26c1171f30ca3b1dc1b429f7937e58 graphviz-2.28.0.tar.gz +bce8a9ae4c3a8c52c1bcf0e03d5ce364 0001-clone-nameclash.patch" |