gentoo/sci-visualization/gnuplot/files/gnuplot-5.0.6-no-picins.patch
Ulrich Müller 87d20a9ab2
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
2017-11-19 12:46:15 +01:00

28 lines
956 B
Diff

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;