diff options
author | Ulrich Müller <ulm@gentoo.org> | 2017-11-19 12:18:34 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2017-11-19 12:46:15 +0100 |
commit | 87d20a9ab246fda845fad3456e412a8b32fc8895 (patch) | |
tree | 8e62ca0fc70a1bde258481aff3925e16461509b6 /sci-visualization/gnuplot/gnuplot-5.0.6.ebuild | |
parent | dev-perl/Mouse: Bump to version 2.4.10 (diff) | |
download | gentoo-87d20a9ab246fda845fad3456e412a8b32fc8895.tar.gz gentoo-87d20a9ab246fda845fad3456e412a8b32fc8895.tar.bz2 gentoo-87d20a9ab246fda845fad3456e412a8b32fc8895.zip |
sci-visualization/gnuplot: Fix building with USE="doc".
- Do not require picins.sty.
- Build documentation without figures if cairo is disabled.
Closes: https://bugs.gentoo.org/577828
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'sci-visualization/gnuplot/gnuplot-5.0.6.ebuild')
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-5.0.6.ebuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sci-visualization/gnuplot/gnuplot-5.0.6.ebuild b/sci-visualization/gnuplot/gnuplot-5.0.6.ebuild index cac060cf8d00..2a7de7b82e76 100644 --- a/sci-visualization/gnuplot/gnuplot-5.0.6.ebuild +++ b/sci-visualization/gnuplot/gnuplot-5.0.6.ebuild @@ -66,10 +66,10 @@ GP_VERSION="${PV%.*}" E_SITEFILE="lisp/50${PN}-gentoo.el" TEXMF="${EPREFIX}/usr/share/texmf-site" -PATCHES=( "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch ) - src_prepare() { - default + eapply "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch + eapply "${FILESDIR}"/${PN}-5.0.6-no-picins.patch + eapply_user if [[ -z ${PV%%*9999} ]]; then local dir @@ -162,7 +162,14 @@ src_compile() { if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig - emake -C docs gnuplot.pdf + if use cairo; then + emake -C docs pdf + else + ewarn "Cannot build figures unless cairo is enabled." + ewarn "Building documentation without figures." + emake -C docs pdf_nofig + mv docs/nofigures.pdf docs/gnuplot.pdf || die + fi emake -C tutorial pdf fi } |