graphviz: separate x11 binaries and gtk plugin to reduce deps (#32826)

Also disable `make check` since it is broken:

    https://gitlab.com/graphviz/graphviz/-/issues/2112

Testing is via pytest:

    https://gitlab.com/graphviz/graphviz/-/blob/main/DEVELOPERS.md#testing

but they expect graphviz already installed before testing.
This commit is contained in:
Gonzalo Tornaría 2021-09-11 20:37:44 -03:00 committed by Leah Neukirchen
parent 9d83ed30b2
commit 2b00a727b0
7 changed files with 41 additions and 1 deletions

1
srcpkgs/graphviz-gtk Symbolic link
View file

@ -0,0 +1 @@
graphviz

1
srcpkgs/graphviz-x11 Symbolic link
View file

@ -0,0 +1 @@
graphviz

View file

@ -0,0 +1 @@
INSTALL

View file

@ -0,0 +1 @@
INSTALL

View file

@ -0,0 +1 @@
INSTALL

View file

@ -0,0 +1 @@
INSTALL

View file

@ -1,7 +1,7 @@
# Template file for 'graphviz' # Template file for 'graphviz'
pkgname=graphviz pkgname=graphviz
version=2.49.0 version=2.49.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
make_build_args="HOSTCC=$BUILD_CC" make_build_args="HOSTCC=$BUILD_CC"
hostmakedepends="automake flex libltdl-devel libtool perl pkg-config python3" hostmakedepends="automake flex libltdl-devel libtool perl pkg-config python3"
@ -16,6 +16,15 @@ homepage="http://www.graphviz.org"
distfiles="https://gitlab.com/graphviz/graphviz/-/archive/${version}/graphviz-${version}.tar.gz" distfiles="https://gitlab.com/graphviz/graphviz/-/archive/${version}/graphviz-${version}.tar.gz"
checksum=a062ccd940abbde6e3c45462323b2ede54b9374fed86f464c11bc4c0bd57fd04 checksum=a062ccd940abbde6e3c45462323b2ede54b9374fed86f464c11bc4c0bd57fd04
# `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
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --with-gts" configure_args+=" --with-gts"
makedepends+=" gts-devel" makedepends+=" gts-devel"
@ -29,6 +38,10 @@ post_install() {
vlicense epl-v10.txt LICENSE vlicense epl-v10.txt LICENSE
rm -rf ${DESTDIR}/usr/share/graphviz/doc 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() { graphviz-libs_package() {
@ -48,3 +61,24 @@ graphviz-devel_package() {
vmove usr/share/man/man3 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
}
}