# $Id: PKGBUILD 194533 2013-09-17 17:04:18Z bisson $ # Maintainer: Gaetan Bisson # Contributor: kevin # Contributor: John Proctor pkgname=graphviz pkgver=2.32.0 pkgrel=2 pkgdesc='Graph visualization software' url='http://www.graphviz.org/' license=('CPL') arch=('i686' 'x86_64') depends=('libltdl' 'gd' 'librsvg' 'libxaw' 'ghostscript' 'pango' 'gts') makedepends=('swig' 'mono' 'guile' 'lua51' 'ocaml' 'perl' 'php' 'python2' 'r' 'ruby' 'tk' 'qt4') 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' 'qt4: gvedit') source=("${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz") sha1sums=('a64f4a409012d13d18338ecb8bd7253083ebc35e') options=('!libtool') install=install prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed \ -e 's: qw(\([^)]*\)): (qw(\1)):g' \ -i config/config_perl.pl sed \ -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:guile-1.8:guile-2.0:g' \ -e 's:ruby-1.9:ruby-2.0:g' \ -e '/LIBPOSTFIX="64"/d' \ -i configure } build() { cd "${srcdir}/${pkgname}-${pkgver}" export PYTHON=python2 export LUA=lua5.1 ./configure --prefix=/usr --with-cgraph=no make || sed '/caml_array_length/d' -i tclpkg/gv/gv_ocaml.cpp # swig goes wonky make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }