diff options
Diffstat (limited to 'sci-visualization/ggobi')
4 files changed, 53 insertions, 22 deletions
diff --git a/sci-visualization/ggobi/files/ggobi-2.1.10-desktop.patch b/sci-visualization/ggobi/files/ggobi-2.1.10-desktop.patch index 388cb85c975c..c41581e3c599 100644 --- a/sci-visualization/ggobi/files/ggobi-2.1.10-desktop.patch +++ b/sci-visualization/ggobi/files/ggobi-2.1.10-desktop.patch @@ -1,5 +1,5 @@ ---- xdg/ggobi.desktop.orig 2013-02-24 22:20:02.616872402 -0800 -+++ xdg/ggobi.desktop 2013-02-24 22:20:13.293924862 -0800 +--- a/xdg/ggobi.desktop ++++ b/xdg/ggobi.desktop @@ -6,6 +6,6 @@ Comment=Multivariate interactive graphics for exploratory data analysis TryExec=ggobi diff --git a/sci-visualization/ggobi/files/ggobi-2.1.8-plugindir.patch b/sci-visualization/ggobi/files/ggobi-2.1.8-plugindir.patch index 0476f47a816d..bd831f61ce8a 100644 --- a/sci-visualization/ggobi/files/ggobi-2.1.8-plugindir.patch +++ b/sci-visualization/ggobi/files/ggobi-2.1.8-plugindir.patch @@ -1,5 +1,5 @@ ---- plugins/Makefile.plugin.orig 2009-12-14 22:15:01.000000000 +0000 -+++ plugins/Makefile.plugin 2009-12-14 22:15:16.000000000 +0000 +--- a/plugins/Makefile.plugin ++++ b/plugins/Makefile.plugin @@ -2,7 +2,7 @@ # Every plugin provides a single library to GGobi, define it here. diff --git a/sci-visualization/ggobi/files/ggobi-2.1.9-as-needed.patch b/sci-visualization/ggobi/files/ggobi-2.1.9-as-needed.patch index 3bec9b55c21d..bc6ef01e4075 100644 --- a/sci-visualization/ggobi/files/ggobi-2.1.9-as-needed.patch +++ b/sci-visualization/ggobi/files/ggobi-2.1.9-as-needed.patch @@ -1,5 +1,5 @@ ---- configure.ac.orig 2012-06-26 05:46:07.000000000 +0100 -+++ configure.ac 2012-06-26 05:46:44.000000000 +0100 +--- a/configure.ac ++++ b/configure.ac @@ -178,6 +178,8 @@ echo "Looking for gtk2" @@ -10,8 +10,8 @@ AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) ---- src/Makefile.am.orig 2012-06-26 04:53:20.000000000 +0100 -+++ src/Makefile.am 2012-06-26 04:54:04.000000000 +0100 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -4,7 +4,6 @@ libggobi_la_GOBHEADERS = $(libggobi_la_GOBS:%.gob=ggobi-%.h) libggobi_la_GOBOBJECTS = $(libggobi_la_GOBS:%.gob=ggobi-%.lo) @@ -38,3 +38,24 @@ ggobi_LDFLAGS = -mwindows -s endif +--- a/plugins/GraphLayout/configure.ac ++++ b/plugins/GraphLayout/configure.ac +@@ -44,6 +44,7 @@ + AC_MSG_RESULT(no)]) + + AC_MSG_CHECKING([whether Graphviz API is based on cgraph]) ++save_CFLAGS="${CFLAGS}" + CFLAGS=$LIBGVC_CFLAGS + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ + #include <gvc.h> +@@ -53,8 +54,10 @@ + return 0; + } + ])], graphviz_new_api=yes, graphviz_new_api=no) ++CFLAGS="${save_CFLAGS}" + AC_MSG_RESULT($graphviz_new_api) + if test "$graphviz_new_api" = "yes"; then ++ CFLAGS="${CFLAGS} ${LIBGVC_CFLAGS}" + AC_DEFINE(HAVE_CGRAPH,[1],[define for cgraph-based graphviz]) + fi + diff --git a/sci-visualization/ggobi/ggobi-2.1.11.ebuild b/sci-visualization/ggobi/ggobi-2.1.11.ebuild index a3a40cec5a40..4898989152c8 100644 --- a/sci-visualization/ggobi/ggobi-2.1.11.ebuild +++ b/sci-visualization/ggobi/ggobi-2.1.11.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit epatch autotools xdg +EAPI=7 + +inherit autotools xdg DESCRIPTION="Visualization program for exploring high-dimensional data" HOMEPAGE="http://www.ggobi.org/" @@ -19,26 +20,28 @@ RDEPEND=" dev-libs/libxml2:2 media-gfx/graphviz x11-libs/gtk+:2" -DEPEND="${RDEPEND} - virtual/pkgconfig" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.8-plugindir.patch + "${FILESDIR}"/${PN}-2.1.9-as-needed.patch + "${FILESDIR}"/${PN}-2.1.10-desktop.patch + "${FILESDIR}"/${PN}-2.1.11-Wformat-security.patch +) src_prepare() { - sed -i \ - -e 's|ND_coord_i|ND_coord|' \ - plugins/GraphLayout/graphviz.c || die + default + sed -e 's|ND_coord_i|ND_coord|' \ + -i plugins/GraphLayout/graphviz.c || die rm m4/libtool.m4 m4/lt*m4 plugins/*/aclocal.m4 || die - epatch \ - "${FILESDIR}"/${PN}-2.1.8-plugindir.patch \ - "${FILESDIR}"/${PN}-2.1.9-as-needed.patch \ - "${FILESDIR}"/${PN}-2.1.10-desktop.patch \ - "${FILESDIR}"/${PN}-2.1.11-Wformat-security.patch + # need the ${S} for recursivity lookup AT_M4DIR="${S}"/m4 eautoreconf } src_configure() { econf \ - --docdir="${EPREFIX}/usr/share/doc/${PF}" \ --disable-rpath \ $(use_enable nls) \ $(use_with !minimal all-plugins) @@ -50,7 +53,14 @@ src_compile() { src_install() { default + insinto /etc/xdg/ggobi doins ggobirc - use doc || rm "${ED}"/usr/share/doc/${PF}/*.pdf + + if ! use doc; then + rm "${ED}"/usr/share/doc/${PF}/*.pdf || die + fi + + # no static archives + find "${ED}" -name '*.la' -delete || die } |