2011-01-15 03:31:50 +08:00
|
|
|
#
|
2013-12-09 06:08:52 +08:00
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
2011-01-15 03:31:50 +08:00
|
|
|
#
|
2013-12-09 06:08:52 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-01-15 03:31:50 +08:00
|
|
|
|
|
|
|
pkgname=graphviz
|
2013-12-09 06:08:52 +08:00
|
|
|
pkgver=2.34.0
|
2013-07-27 21:09:52 +08:00
|
|
|
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')
|
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')
|
|
|
|
install='graphviz.install'
|
|
|
|
sha1sums=('5a0c00bebe7f4c7a04523db21f40966dc9f0d441'
|
|
|
|
'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
|
2011-01-15 03:31:50 +08:00
|
|
|
}
|