summaryrefslogtreecommitdiff
path: root/extra/graphviz/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/graphviz/PKGBUILD')
-rw-r--r--extra/graphviz/PKGBUILD50
1 files changed, 23 insertions, 27 deletions
diff --git a/extra/graphviz/PKGBUILD b/extra/graphviz/PKGBUILD
index 1b7a93e67..1a2728ae0 100644
--- a/extra/graphviz/PKGBUILD
+++ b/extra/graphviz/PKGBUILD
@@ -1,47 +1,34 @@
-# $Id: PKGBUILD 173840 2012-12-25 00:34:21Z foutrelis $
+# $Id: PKGBUILD 180579 2013-03-23 23:09:33Z td123 $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=graphviz
-pkgver=2.28.0
-pkgrel=12
+pkgver=2.30.1
+pkgrel=2.1
pkgdesc='Graph visualization software'
url='http://www.graphviz.org/'
license=('custom:EPL')
arch=('i686' 'x86_64' 'mips64el')
depends=('libltdl' 'gd' 'librsvg' 'libxaw' 'ghostscript' 'pango' 'gts')
-case $CARCH in
- mips64el)
-# r and ocaml aren't ported yet
-# no one's interested on mono
-makedepends=('swig' 'guile' 'lua51' 'perl' 'php' 'python2' 'ruby' 'tk' 'qt')
+makedepends=('swig' 'guile' 'lua51' 'ocaml' 'perl' 'php' 'python2' 'ruby' 'tk' 'qt4')
optdepends=('guile: guile bindings'
- 'lua: lua bindings'
- 'perl: perl bindings'
- 'php: php bindings'
- 'python2: python bindings'
- 'ruby: ruby bindings'
- 'tcl: tcl bindings'
- 'qt: gvedit')
- ;;
- *)
-makedepends=('swig' 'mono' 'guile' 'lua51' 'ocaml' 'perl' 'php' 'python2' 'r' 'ruby' 'tk' 'qt')
-optdepends=('mono: sharp bindings'
- 'guile: guile bindings'
'lua51: lua bindings'
'ocaml: ocaml bindings'
'perl: perl bindings'
'php: php bindings'
'python2: python bindings'
- 'r: r bindings'
'ruby: ruby bindings'
'tcl: tcl bindings'
- 'qt: gvedit')
-esac
+ 'qt4: gvedit')
+if [ "$CARCH" != "mips64el" ]; then
+ makedepends+=('mono' 'r')
+ optdepends+=('mono: sharp bindings'
+ 'r: r bindings')
+fi
source=("${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz"
'LICENSE')
-sha1sums=('4725d88a13e071ee22e632de551d4a55ca08ee7d'
+sha1sums=('96739220c4bbcf1bd3bd52e7111f4e60497185c6'
'e78277e502c29abb74b9587a5dc951ec392554ea')
options=('!libtool')
@@ -51,14 +38,20 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed \
- -e '/"archdir"/s:$:+" '"$(echo -I/usr/include/ruby-1.9.1/{$CARCH-linux,ruby/backward,})"'":' \
+ -e '/"archdir"/s:$:+" '"$(echo -I/usr/include/ruby-2.0.0/{$CARCH-linux,ruby/backward,})"'":' \
-e '/CONFIG/s:site:vendor:' \
-i config/config_ruby.rb
+ sed \
+ -e 's:ruby-1.9:ruby-2.0:g' \
+ -e '/LIBPOSTFIX="64"/d' \
+ -i configure
- sed '/LIBPOSTFIX="64"/d' -i configure
export PYTHON=python2
export LUA=lua5.1
+ # 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
@@ -68,6 +61,9 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
- # cf. http://www.graphviz.org/License.php
+ # 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
}