pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/tex-pst-pdf Import tex-pst-pdf-1.1v as graphi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b01f57184b9b
branches:  trunk
changeset: 594400:b01f57184b9b
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Oct 27 18:24:57 2011 +0000

description:
Import tex-pst-pdf-1.1v as graphics/tex-pst-pdf.

The package pst-pdf simplifies the use of graphics from PSTricks and
other PostScript code in PDF documents. As in building a bibliography
with BibTEX additional external programmes are being invoked. In this
case they are used to create a PDF file (\PDFcontainer) that will
contain all this graphics material. In the final document this contents
will be inserted instead of the original PostScript code. The package
works with pstricks and requires a recent version of the preview
package.

diffstat:

 graphics/tex-pst-pdf/DESCR                    |   8 ++++
 graphics/tex-pst-pdf/Makefile                 |  50 +++++++++++++++++++++++++++
 graphics/tex-pst-pdf/PLIST                    |   3 +
 graphics/tex-pst-pdf/distinfo                 |   6 +++
 graphics/tex-pst-pdf/patches/patch-bin_ps4pdf |  30 ++++++++++++++++
 5 files changed, 97 insertions(+), 0 deletions(-)

diffs (117 lines):

diff -r 71c880d34845 -r b01f57184b9b graphics/tex-pst-pdf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tex-pst-pdf/DESCR        Thu Oct 27 18:24:57 2011 +0000
@@ -0,0 +1,8 @@
+The package pst-pdf simplifies the use of graphics from PSTricks and
+other PostScript code in PDF documents. As in building a bibliography
+with BibTEX additional external programmes are being invoked. In this
+case they are used to create a PDF file (\PDFcontainer) that will
+contain all this graphics material. In the final document this contents
+will be inserted instead of the original PostScript code. The package
+works with pstricks and requires a recent version of the preview
+package.
diff -r 71c880d34845 -r b01f57184b9b graphics/tex-pst-pdf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tex-pst-pdf/Makefile     Thu Oct 27 18:24:57 2011 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/27 18:24:57 minskim Exp $
+
+DISTNAME=      pst-pdf
+PKGNAME=       tex-${DISTNAME}-1.1v
+TEXLIVE_REV=   15878
+
+MAINTAINER=    minskim%NetBSD.org@localhost
+COMMENT=       Make PDF versions of graphics by processing between runs
+
+CONFLICTS=     texlive-pdftools<2011
+DEPENDS+=      dvipsk-[0-9]*:../../print/dvipsk
+DEPENDS+=      ghostscript-[0-9]*:../../print/ghostscript
+DEPENDS+=      tex-environ-[0-9]*:../../print/tex-environ
+DEPENDS+=      tex-graphics-[0-9]*:../../print/tex-graphics
+DEPENDS+=      tex-latex-bin-[0-9]*:../../print/tex-latex-bin
+DEPENDS+=      tex-pdfcrop-[0-9]*:../../graphics/tex-pdfcrop
+DEPENDS+=      tex-pdftex-def-[0-9]*:../../print/tex-pdftex-def
+DEPENDS+=      tex-preview-[0-9]*:../../print/tex-preview
+DEPENDS+=      tex-pstricks-[0-9]*:../../graphics/tex-pstricks
+
+EVAL_PREFIX+=  DVIPS_PREFIX=dvipsk
+EVAL_PREFIX+=  PS2PDF_PREFIX=ghostscript
+EVAL_PREFIX+=  LATEX_PREFIX=tex-latex-bin
+EVAL_PREFIX+=  PDFCROP_PREFIX=tex-pdfcrop
+USE_TOOLS+=    sed:run sh:run
+
+REPLACE_SH=    bin/ps4pdf
+
+SUBST_CLASSES+=                paths
+SUBST_MESSAGE.paths=   Setting paths to commands.
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     bin/ps4pdf
+SUBST_SED.paths+=      -e 's,@DVIPS@,${DVIPS_PREFIX}/bin/dvips,g'
+SUBST_SED.paths+=      -e 's,@LATEX@,${LATEX_PREFIX}/bin/latex,g'
+SUBST_SED.paths+=      -e 's,@PDFCROP@,${PDFCROP_PREFIX}/bin/pdfcrop,g'
+SUBST_SED.paths+=      -e 's,@PDFLATEX@,${LATEX_PREFIX}/bin/pdflatex,g'
+SUBST_SED.paths+=      -e 's,@PS2PDF@,${PS2PDF_PREFIX}/bin/ps2pdf,g'
+SUBST_SED.paths+=      -e 's,@SED@,${TOOLS_PATH.sed},g'
+
+INSTALLATION_DIRS+=    bin
+
+TEXLIVE_IGNORE_PATTERNS=       scripts/pst-pdf/ps4pdf.bat*
+
+.include "../../print/texlive/package.mk"
+
+post-extract:
+       ${MKDIR} ${WRKSRC}/bin
+       ${MV} ${WRKSRC}/scripts/pst-pdf/ps4pdf ${WRKSRC}/bin/
+
+.include "../../mk/bsd.pkg.mk"
diff -r 71c880d34845 -r b01f57184b9b graphics/tex-pst-pdf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tex-pst-pdf/PLIST        Thu Oct 27 18:24:57 2011 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/27 18:24:57 minskim Exp $
+bin/ps4pdf
+share/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
diff -r 71c880d34845 -r b01f57184b9b graphics/tex-pst-pdf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tex-pst-pdf/distinfo     Thu Oct 27 18:24:57 2011 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/27 18:24:57 minskim Exp $
+
+SHA1 (tex-pst-pdf-15878/pst-pdf.tar.xz) = 8448ff53ef5a4d2fd03f011b0e4bbea9183054dd
+RMD160 (tex-pst-pdf-15878/pst-pdf.tar.xz) = e24702d1604374ca29c8533735408b6d8b655105
+Size (tex-pst-pdf-15878/pst-pdf.tar.xz) = 7036 bytes
+SHA1 (patch-bin_ps4pdf) = eaac6f08c2f29005a5076b3873407a7b180563cd
diff -r 71c880d34845 -r b01f57184b9b graphics/tex-pst-pdf/patches/patch-bin_ps4pdf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/tex-pst-pdf/patches/patch-bin_ps4pdf     Thu Oct 27 18:24:57 2011 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-bin_ps4pdf,v 1.1.1.1 2011/10/27 18:24:57 minskim 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 @@
+ 
+ # jobname von TeX: Verzeichnisse entfernen, evtl. vorhandene Extension
+ # entfernen.
+-job=`echo "x$1" | sed 's@x@@; s@.*/@@; s@\.[^.]*$@@'`
++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"
+ 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



Home | Main Index | Thread Index | Old Index