2010-11-06 23:29:06 +08:00
|
|
|
#
|
2012-11-06 00:16:31 +08:00
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
2010-11-06 23:29:06 +08:00
|
|
|
#
|
2012-11-06 00:16:31 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-11-06 23:29:06 +08:00
|
|
|
|
|
|
|
pkgname=graphviz
|
2013-03-03 23:54:56 +08:00
|
|
|
pkgver=2.30.1
|
2013-08-01 00:17:42 +08:00
|
|
|
pkgrel=2
|
2010-11-06 23:29:06 +08:00
|
|
|
pkgdesc="Creates acircular graph images"
|
2012-11-06 00:16:31 +08:00
|
|
|
arch=('x86_64')
|
2010-11-06 23:29:06 +08:00
|
|
|
license=('CPL')
|
2012-11-06 00:16:31 +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'
|
|
|
|
'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')
|
2010-11-06 23:29:06 +08:00
|
|
|
url="http://www.graphviz.org/"
|
|
|
|
options=('!libtool')
|
2012-03-06 19:37:36 +08:00
|
|
|
categories=('graphics')
|
2012-11-06 00:16:31 +08:00
|
|
|
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz
|
|
|
|
'LICENSE')
|
|
|
|
install='graphviz.install'
|
2013-03-03 23:54:56 +08:00
|
|
|
sha1sums=('96739220c4bbcf1bd3bd52e7111f4e60497185c6'
|
2012-11-06 00:16:31 +08:00
|
|
|
'5a83febc0974e17d6b2356a4b1be9a834b715378')
|
2010-11-06 23:29:06 +08:00
|
|
|
|
|
|
|
build() {
|
2012-11-06 00:16:31 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2010-11-06 23:29:06 +08:00
|
|
|
|
2012-11-06 00:16:31 +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
|
|
|
|
sed -i '/LIBPOSTFIX="64"/d' configure
|
|
|
|
export PYTHON=python2
|
2010-11-06 23:29:06 +08:00
|
|
|
|
2012-11-06 00:16:31 +08:00
|
|
|
./configure --prefix=/usr --disable-swig
|
|
|
|
make
|
|
|
|
}
|
2010-11-06 23:29:06 +08:00
|
|
|
|
2012-11-06 00:16:31 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-11-06 23:29:06 +08:00
|
|
|
|
2012-11-06 00:16:31 +08:00
|
|
|
# cf. http://www.graphviz.org/License.php
|
|
|
|
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
|
2010-11-06 23:29:06 +08:00
|
|
|
}
|