graphviz: enable gts library for native arches and fix license=

This commit is contained in:
maxice8 2018-11-26 21:23:16 -02:00
parent 32edac01a2
commit 9b4697ef9a
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 14 additions and 7 deletions

View File

@ -1,29 +1,35 @@
# Template file for 'graphviz'
pkgname=graphviz
version=2.40.1
revision=2
replaces="graphviz-libs<2.38.0_3"
revision=3
build_style=gnu-configure
hostmakedepends="automake libtool flex pkg-config libltdl-devel"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
libXaw-devel"
short_desc="Graph Visualization Software"
configure_args="--disable-rpath --enable-ltdl --disable-ltdl-install
--disable-swig --disable-sharp --disable-guile --disable-io --disable-java
--disable-lua --disable-ocaml --disable-perl --disable-php --disable-python
--disable-r --disable-ruby --disable-tcl --without-included-ltdl --with-qt=no
--without-devil --without-glut --without-ghoscript --with-libgd"
hostmakedepends="automake libtool flex pkg-config libltdl-devel"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
libXaw-devel gts-devel"
short_desc="Graph Visualization Software"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.graphviz.org"
license="EPL"
license="EPL-1.0"
# XXX: No version in the URL!
distfiles="https://graphviz.gitlab.io/pub/${pkgname}/stable/SOURCES/${pkgname}.tar.gz"
checksum=ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421
replaces="graphviz-libs<2.38.0_3"
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --with-gts"
makedepends="gts-devel"
fi
pre_configure() {
autoreconf -fi
sed -i '/typedef.*ssize_t/d' lib/vmalloc/vmhdr.h
}
post_install() {
vlicense ${FILESDIR}/LICENSE
}
@ -35,6 +41,7 @@ graphviz-libs_package() {
vmove "usr/lib/*.so.*"
}
}
graphviz-devel_package() {
depends="graphviz-libs>=${version}_${revision}"
short_desc+=" - development files"