2014-03-04 21:04:34 +08:00
|
|
|
# Maintainer: Francesco Marinucci <franzmari[at]chakra-project[dot]it>
|
2013-12-09 06:08:52 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-01-15 03:31:50 +08:00
|
|
|
|
|
|
|
pkgname=graphviz
|
2014-12-17 22:26:47 +08:00
|
|
|
pkgver=2.38.0
|
|
|
|
pkgrel=1
|
2011-01-15 03:31:50 +08:00
|
|
|
pkgdesc="Creates acircular graph images"
|
2013-07-27 21:09:52 +08:00
|
|
|
arch=('x86_64')
|
2011-01-15 03:31:50 +08:00
|
|
|
license=('CPL')
|
2013-12-09 06:08:52 +08:00
|
|
|
depends=('gd' 'librsvg' 'libxaw' 'ghostscript' 'pango' 'libltdl')
|
|
|
|
makedepends=('swig' 'guile' 'lua' 'ocaml' 'perl' 'php' 'python2' 'r' 'ruby' 'tk' 'qt')
|
|
|
|
optdepends=('guile: guile bindings'
|
2011-11-22 05:23:03 +08:00
|
|
|
'lua: 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')
|
2013-12-09 06:08:52 +08:00
|
|
|
url="http://www.graphviz.org/"
|
2011-01-15 03:31:50 +08:00
|
|
|
options=('!libtool')
|
2013-12-09 06:08:52 +08:00
|
|
|
categories=('graphics')
|
2014-03-04 21:04:34 +08:00
|
|
|
install='graphviz.install'
|
2011-05-12 00:51:19 +08:00
|
|
|
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz
|
2013-12-09 06:08:52 +08:00
|
|
|
'LICENSE')
|
2014-12-17 22:26:47 +08:00
|
|
|
sha1sums=('053c771278909160916ca5464a0a98ebf034c6ef'
|
2013-12-09 06:08:52 +08:00
|
|
|
'5a83febc0974e17d6b2356a4b1be9a834b715378')
|
2013-07-27 21:09:52 +08:00
|
|
|
|
2013-12-09 06:08:52 +08:00
|
|
|
build() {
|
2013-07-27 21:09:52 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-12-09 06:08:52 +08:00
|
|
|
|
2013-07-27 21:09:52 +08:00
|
|
|
sed \
|
|
|
|
-e '/"archdir"/s:$:+" '"$(echo -I/usr/include/ruby-1.9.1/{$CARCH-linux,ruby/backward,})"'":' \
|
|
|
|
-e '/CONFIG/s:site:vendor:' \
|
|
|
|
-i config/config_ruby.rb
|
2013-12-09 06:08:52 +08:00
|
|
|
sed -i '/LIBPOSTFIX="64"/d' configure
|
2011-11-22 05:23:03 +08:00
|
|
|
export PYTHON=python2
|
2011-01-15 03:31:50 +08:00
|
|
|
|
2013-12-09 06:08:52 +08:00
|
|
|
./configure --prefix=/usr --disable-swig
|
2011-11-22 05:23:03 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2011-01-15 03:31:50 +08:00
|
|
|
|
2011-11-22 05:23:03 +08:00
|
|
|
# cf. http://www.graphviz.org/License.php
|
|
|
|
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
|
2014-03-06 20:18:50 +08:00
|
|
|
|
|
|
|
# Workaround symlink upgrade bug (fixed in pacman trunk)
|
|
|
|
# Also deduplicates the tcl libraries (upstream bug?)
|
|
|
|
# Might have been this commit: https://github.com/ellson/graphviz/commit/f11aead
|
|
|
|
rm -r "${pkgdir}/usr/lib/tcl8.6/graphviz"
|
|
|
|
ln -s ../graphviz/tcl "$pkgdir/usr/lib/tcl8.6/graphviz"
|
2011-01-15 03:31:50 +08:00
|
|
|
}
|