summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-11-19 12:18:34 +0100
committerUlrich Müller <ulm@gentoo.org>2017-11-19 12:46:15 +0100
commit87d20a9ab246fda845fad3456e412a8b32fc8895 (patch)
tree8e62ca0fc70a1bde258481aff3925e16461509b6 /sci-visualization/gnuplot/files
parentdev-perl/Mouse: Bump to version 2.4.10 (diff)
downloadgentoo-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/files')
-rw-r--r--sci-visualization/gnuplot/files/gnuplot-5.0.6-no-picins.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sci-visualization/gnuplot/files/gnuplot-5.0.6-no-picins.patch b/sci-visualization/gnuplot/files/gnuplot-5.0.6-no-picins.patch
new file mode 100644
index 000000000000..87408aebd447
--- /dev/null
+++ b/sci-visualization/gnuplot/files/gnuplot-5.0.6-no-picins.patch
@@ -0,0 +1,27 @@
+Do not require picins.sty.
+https://bugs.gentoo.org/577828#c4
+
+--- gnuplot-5.0.6-orig/docs/Makefile.am
++++ gnuplot-5.0.6/docs/Makefile.am
+@@ -189,7 +189,6 @@
+ touch figures.idx ; \
+ rm -f pdffigures.tex ; \
+ ( echo "\usepackage{graphicx}" > pdffigures.tex ; \
+- echo "\usepackage{picins}" >> pdffigures.tex ; \
+ ) ; \
+ TEXINPUTS=.:$(srcdir):$(top_srcdir):${TEXINPUTS}: $(PDFLATEX) $< ; \
+ TEXINPUTS=.:$(srcdir):$(top_srcdir):${TEXINPUTS}: $(PDFLATEX) $< ; \
+--- gnuplot-5.0.6-orig/docs/doc2tex.c
++++ gnuplot-5.0.6/docs/doc2tex.c
+@@ -170,9 +170,9 @@
+ case 'F': /* embedded figure */
+ if (figures) {
+ line[strlen(line)-1]=NUL;
+- (void) fputs("\\parpic[r][rt]{\\includegraphics[width=3in,keepaspectratio]{",b);
++ (void) fputs("\\begin{figure}[htb]\n\\centering\\includegraphics[width=3in,keepaspectratio]{",b);
+ fputs(line+1, b);
+- (void) fputs("}}\n",b);
++ (void) fputs("}\n\\end{figure}\n",b);
+ }
+ break;
+