summaryrefslogtreecommitdiff
path: root/graphics/tex-pstools
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2013-12-04 18:34:47 +0000
committerminskim <minskim@pkgsrc.org>2013-12-04 18:34:47 +0000
commit9e0875089c06eb8edad2f47e54b9a920586d8c6c (patch)
treeb9aba5f39552f7961c2e3123e2897d7c88832f4b /graphics/tex-pstools
parent127f347412ce627251726f494a6174ea2e0c6dfb (diff)
downloadpkgsrc-9e0875089c06eb8edad2f47e54b9a920586d8c6c.tar.gz
Import tex-pstools-1.68 as graphics/tex-pstools.
Produce Encapsulated PostScript Files (EPS/EPSF) from a one- page PostScript document, or any PostScript document. A correct Bounding Box is calculated for the EPS files and some PostScript command sequences that can produce errorneous results on printers are filtered. The input is cropped to include just the image contained in the PostScript file. The EPS files can then be included into TeX documents. Other programs like ps2epsi (a script distributed with ghostscript) don't always calculate the correct bounding box (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or they round it off, resulting in clipping the image. Therefore ps2eps uses a resolution of 144 dpi to get the correct bounding box.
Diffstat (limited to 'graphics/tex-pstools')
-rw-r--r--graphics/tex-pstools/DESCR13
-rw-r--r--graphics/tex-pstools/Makefile31
-rw-r--r--graphics/tex-pstools/PLIST3
-rw-r--r--graphics/tex-pstools/distinfo5
4 files changed, 52 insertions, 0 deletions
diff --git a/graphics/tex-pstools/DESCR b/graphics/tex-pstools/DESCR
new file mode 100644
index 00000000000..35114814d80
--- /dev/null
+++ b/graphics/tex-pstools/DESCR
@@ -0,0 +1,13 @@
+Produce Encapsulated PostScript Files (EPS/EPSF) from a one-
+page PostScript document, or any PostScript document. A correct
+Bounding Box is calculated for the EPS files and some
+PostScript command sequences that can produce errorneous
+results on printers are filtered. The input is cropped to
+include just the image contained in the PostScript file. The
+EPS files can then be included into TeX documents. Other
+programs like ps2epsi (a script distributed with ghostscript)
+don't always calculate the correct bounding box (because the
+values are put on the PostScript stack which may get corrupted
+by bad PostScript code) or they round it off, resulting in
+clipping the image. Therefore ps2eps uses a resolution of 144
+dpi to get the correct bounding box.
diff --git a/graphics/tex-pstools/Makefile b/graphics/tex-pstools/Makefile
new file mode 100644
index 00000000000..7fb9d0c9297
--- /dev/null
+++ b/graphics/tex-pstools/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2013/12/04 18:34:47 minskim Exp $
+
+DISTNAME= pstools
+PKGNAME= tex-${DISTNAME}-1.68
+TEXLIVE_REV= 29764
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Produce Encapsulated PostScript from PostScript
+LICENSE= lppl-1.3c
+
+DEPENDS+= ps2eps>=1.68:../../graphics/ps2eps
+DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
+DEPENDS+= tex-pslatex-[0-9]*:../../print/tex-pslatex
+
+USE_TOOLS+= sh:run
+
+REPLACE_SH= bin/ps2frag bin/pslatex
+
+TEX_TEXMF_DIRS= # none
+
+.include "../../print/texlive/package.mk"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MV} ${WRKSRC}/texmf-dist/scripts/texlive/ps2frag.sh \
+ ${WRKSRC}/bin/ps2frag
+ ${MV} ${WRKSRC}/texmf-dist/scripts/texlive/pslatex.sh \
+ ${WRKSRC}/bin/pslatex
+ ${RM} -r ${WRKSRC}/texmf-dist
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/tex-pstools/PLIST b/graphics/tex-pstools/PLIST
new file mode 100644
index 00000000000..44bc0becd50
--- /dev/null
+++ b/graphics/tex-pstools/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2013/12/04 18:34:47 minskim Exp $
+bin/ps2frag
+bin/pslatex
diff --git a/graphics/tex-pstools/distinfo b/graphics/tex-pstools/distinfo
new file mode 100644
index 00000000000..ef45bafc564
--- /dev/null
+++ b/graphics/tex-pstools/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/12/04 18:34:47 minskim Exp $
+
+SHA1 (tex-pstools-29764/pstools.tar.xz) = 238d7a5ea4046af4054cb9c32a500e4eef46b4b7
+RMD160 (tex-pstools-29764/pstools.tar.xz) = 08faaf8c4bf796bfb4ec06c48243cc07c3b68b4f
+Size (tex-pstools-29764/pstools.tar.xz) = 11524 bytes