sci-visualization/gnuplot: Fix build of documentation without gd.

Bug: https://bugs.gentoo.org/577828
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2019-07-16 11:07:38 +02:00
parent 79b75349c9
commit 735a8c0df4
4 changed files with 10 additions and 10 deletions

View File

@@ -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