summaryrefslogtreecommitdiff
path: root/extra/graphviz/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/graphviz/PKGBUILD')
-rw-r--r--extra/graphviz/PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/extra/graphviz/PKGBUILD b/extra/graphviz/PKGBUILD
index d2f473817..2388f17f5 100644
--- a/extra/graphviz/PKGBUILD
+++ b/extra/graphviz/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 178365 2013-02-20 22:51:19Z bisson $
+# $Id: PKGBUILD 178429 2013-02-22 00:30:19Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=graphviz
pkgver=2.30.0
-pkgrel=3
+pkgrel=5
pkgdesc='Graph visualization software'
url='http://www.graphviz.org/'
license=('custom:EPL')
@@ -43,10 +43,10 @@ build() {
export PYTHON=python2
export LUA=lua5.1
- ./configure \
- --prefix=/usr \
- --with-cgraph=false # apps need porting to that new api first
+ # install the graph and cgraph api alongside
+ sed 's/@WITH_CGRAPH_FALSE@//g' -i lib/graph/Makefile.in
+ ./configure --prefix=/usr
make || sed '/caml_array_length/d' -i tclpkg/gv/gv_ocaml.cpp # swig goes wonky
make
}
@@ -57,4 +57,7 @@ package() {
# http://www.graphviz.org/License.php
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
+
+ # everything has been built against cgraph, but use graph as default api
+ sed '/#define WITH_CGRAPH 1/d' -i "${pkgdir}"/usr/include/graphviz/types.h
}