From 735a8c0df42dc1486356e695ad82017e23638593 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Tue, 16 Jul 2019 11:07:38 +0200 Subject: [PATCH] sci-visualization/gnuplot: Fix build of documentation without gd. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/577828 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Ulrich Müller --- sci-visualization/gnuplot/gnuplot-5.0.7.ebuild | 6 +++--- sci-visualization/gnuplot/gnuplot-5.2.6.ebuild | 4 ++-- sci-visualization/gnuplot/gnuplot-5.2.7.ebuild | 4 ++-- sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sci-visualization/gnuplot/gnuplot-5.0.7.ebuild b/sci-visualization/gnuplot/gnuplot-5.0.7.ebuild index 8d3338bad0a1..27def81ca7fe 100644 --- a/sci-visualization/gnuplot/gnuplot-5.0.7.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.0.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -160,10 +160,10 @@ src_compile() { if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig - if use cairo; then + if use cairo && use gd; then emake -C docs pdf else - ewarn "Cannot build figures unless cairo is enabled." + ewarn "Cannot build figures unless cairo and gd are enabled." ewarn "Building documentation without figures." emake -C docs pdf_nofig mv docs/nofigures.pdf docs/gnuplot.pdf || die diff --git a/sci-visualization/gnuplot/gnuplot-5.2.6.ebuild b/sci-visualization/gnuplot/gnuplot-5.2.6.ebuild index e71b7253da9e..99a845fc7433 100644 --- a/sci-visualization/gnuplot/gnuplot-5.2.6.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.2.6.ebuild @@ -158,10 +158,10 @@ src_compile() { if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig - if use cairo; then + if use cairo && use gd; then emake -C docs pdf else - ewarn "Cannot build figures unless cairo is enabled." + ewarn "Cannot build figures unless cairo and gd are enabled." ewarn "Building documentation without figures." emake -C docs pdf_nofig mv docs/nofigures.pdf docs/gnuplot.pdf || die diff --git a/sci-visualization/gnuplot/gnuplot-5.2.7.ebuild b/sci-visualization/gnuplot/gnuplot-5.2.7.ebuild index 9240510b1032..4ea9c17d1442 100644 --- a/sci-visualization/gnuplot/gnuplot-5.2.7.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.2.7.ebuild @@ -158,10 +158,10 @@ src_compile() { if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig - if use cairo; then + if use cairo && use gd; then emake -C docs pdf else - ewarn "Cannot build figures unless cairo is enabled." + ewarn "Cannot build figures unless cairo and gd are enabled." ewarn "Building documentation without figures." emake -C docs pdf_nofig mv docs/nofigures.pdf docs/gnuplot.pdf || die diff --git a/sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild b/sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild index 517402b50184..38d6d67f756b 100644 --- a/sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.2.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -156,10 +156,10 @@ src_compile() { if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig - if use cairo; then + if use cairo && use gd; then emake -C docs pdf else - ewarn "Cannot build figures unless cairo is enabled." + ewarn "Cannot build figures unless cairo and gd are enabled." ewarn "Building documentation without figures." emake -C docs pdf_nofig mv docs/nofigures.pdf docs/gnuplot.pdf || die -- 2.26.2