void-packages/srcpkgs/graphviz/template
Leah Neukirchen a446942784 graphviz: depend on a default font.
With no fonts available (e.g. chroots), graphviz crashes in pango:
https://gitlab.gnome.org/GNOME/pango/-/issues/588

Depend on liberation fonts which provides the default
times font and most people have it anyway.
2021-08-07 21:28:07 +02:00

51 lines
1.3 KiB
Bash

# Template file for 'graphviz'
pkgname=graphviz
version=2.44.0
revision=2
wrksrc="graphviz-stable_release_${version}"
build_style=gnu-configure
make_build_args="HOSTCC=$BUILD_CC"
hostmakedepends="automake flex libltdl-devel libtool perl pkg-config"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
libXaw-devel"
depends="liberation-fonts-ttf"
short_desc="Graph Visualization Software"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="http://www.graphviz.org"
distfiles="https://gitlab.com/graphviz/graphviz/-/archive/stable_release_${version}/graphviz-stable_release_${version}.tar.gz"
checksum=71e1f5bcd88a3be8eaf2db88ab2b0881cbaedb362eeb8683c8679f69ebf4b244
LDFLAGS="-lm"
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --with-gts"
makedepends+=" gts-devel"
fi
pre_configure() {
./autogen.sh NOCONFIG
}
post_install() {
vlicense epl-v10.txt LICENSE
rm -rf ${DESTDIR}/usr/share/graphviz/doc
}
graphviz-libs_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
graphviz-devel_package() {
depends="graphviz-libs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}