void-packages/srcpkgs/graphviz/template
2022-01-29 19:37:38 +01:00

81 lines
2.2 KiB
Bash

# Template file for 'graphviz'
pkgname=graphviz
version=2.50.0
revision=2
build_style=gnu-configure
configure_args="--enable-lefty --with-gts"
make_build_args="HOSTCC=$BUILD_CC"
hostmakedepends="automake flex libltdl-devel libtool perl pkg-config python3"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
libXaw-devel gts-devel"
depends="liberation-fonts-ttf"
checkdepends="${depends}"
short_desc="Graph Visualization Software"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="https://www.graphviz.org"
changelog="https://gitlab.com/graphviz/graphviz/-/raw/main/CHANGELOG.md"
distfiles="https://gitlab.com/graphviz/graphviz/-/archive/${version}/graphviz-${version}.tar.gz"
checksum=afa48581f764a35e148909cc96a0308ec2356b5225b64af12492f3392f20ef1c
# `make check` is broken:
# https://gitlab.com/graphviz/graphviz/-/issues/2112
#
# Testing is via pytest:
# https://gitlab.com/graphviz/graphviz/-/blob/main/DEVELOPERS.md#testing
#
# They expect graphviz already installed before testing, disable
make_check=no
pre_configure() {
./autogen.sh NOCONFIG
}
post_install() {
vlicense epl-v10.txt LICENSE
rm -rf ${DESTDIR}/usr/share/graphviz/doc
# mingle is not compiled so do not install manpage
rm -f ${DESTDIR}/usr/share/man/man1/mingle.1
# dot_builtins is just dot with preloaded plugins (for testing?)
rm -f ${DESTDIR}/usr/bin/dot_builtins
}
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
}
}
graphviz-gtk_package() {
depends="graphviz>=${version}_${revision}"
short_desc+=" - gtk plugin"
pkg_install() {
vmove "usr/lib/graphviz/libgvplugin_gdk.*"
vmove "usr/lib/graphviz/libgvplugin_gtk.*"
}
}
graphviz-x11_package() {
depends="graphviz>=${version}_${revision}"
short_desc+=" - x11 binaries (lefty)"
pkg_install() {
for p in lefty lneato dotty ; do
vmove usr/bin/$p
vmove usr/share/man/man1/$p.1
done
vmove usr/share/graphviz/lefty
}
}