diff options
Diffstat (limited to 'graphics/tex-pst-pdf/patches/patch-bin_ps4pdf')
-rw-r--r-- | graphics/tex-pst-pdf/patches/patch-bin_ps4pdf | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/graphics/tex-pst-pdf/patches/patch-bin_ps4pdf b/graphics/tex-pst-pdf/patches/patch-bin_ps4pdf index ff0038ec5e1..abbe068742a 100644 --- a/graphics/tex-pst-pdf/patches/patch-bin_ps4pdf +++ b/graphics/tex-pst-pdf/patches/patch-bin_ps4pdf @@ -1,8 +1,24 @@ -$NetBSD: patch-bin_ps4pdf,v 1.1.1.1 2011/10/27 18:24:57 minskim Exp $ +$NetBSD: patch-bin_ps4pdf,v 1.2 2016/08/07 10:38:00 markd Exp $ ---- bin/ps4pdf.orig 2008-08-08 14:55:48.000000000 -0700 -+++ bin/ps4pdf 2011-10-27 11:15:07.000000000 -0700 -@@ -115,19 +115,19 @@ +--- bin/ps4pdf.orig 2016-07-15 23:20:24.000000000 +0000 ++++ bin/ps4pdf +@@ -88,11 +88,11 @@ log=$tmpdir/log + version="1.0" + + ## the defaults +-ENGINE1=latex ++ENGINE1=@LATEX@ + OPTIONS= +-ENGINE2=pdflatex +-DVIPS=dvips +-PS2PDF=ps2pdf ++ENGINE2=@PDFLATEX@ ++DVIPS=@DVIPS@ ++PS2PDF=@PS2PDF@ + FILE=$1 + + # look for optional things first +@@ -134,7 +134,7 @@ fi # jobname von TeX: Verzeichnisse entfernen, evtl. vorhandene Extension # entfernen. @@ -10,21 +26,13 @@ $NetBSD: patch-bin_ps4pdf,v 1.1.1.1 2011/10/27 18:24:57 minskim Exp $ +job=`echo "x$1" | @SED@ 's@x@@; s@.*/@@; s@\.[^.]*$@@'` setupTmpDir --myexec latex \ -+myexec @LATEX@ \ - "\AtBeginDocument{\RequirePackage{pst-pdf}} \input{$file}" --test -f "$job.dvi" && myexec dvips -o "$job-pics.ps" "$job.dvi" --test -f "$job-pics.ps" && myexec ps2pdf \ -+test -f "$job.dvi" && myexec @DVIPS@ -o "$job-pics.ps" "$job.dvi" -+test -f "$job-pics.ps" && myexec @PS2PDF@ \ - "$ps2pdf_opts" "$job-pics.ps" "$job-pics.pdf" + myexec ${ENGINE1} ${OPTIONS} "\AtBeginDocument{\RequirePackage{pst-pdf}} \input{$FILE}" +@@ -148,7 +148,7 @@ fi + test -f "$job-pics.ps" && myexec ${PS2PDF} "$ps2pdf_opts" "$job-pics.ps" "$job-pics.pdf" + if $crop; then - myexec pdfcrop "$job-pics.pdf" "$job-pics-crop.pdf" + myexec @PDFCROP@ "$job-pics.pdf" "$job-pics-crop.pdf" mv "$job-pics-crop.pdf" "$job-pics.pdf" fi --myexec pdflatex \ -+myexec @PDFLATEX@ \ - "\AtBeginDocument{\RequirePackage{pst-pdf}} \input{$file}" - true - cleanup + myexec ${ENGINE2} "\AtBeginDocument{\RequirePackage{pst-pdf}} \input{$FILE}" |