summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/tex-epstopdf/DESCR10
-rw-r--r--graphics/tex-epstopdf/Makefile37
-rw-r--r--graphics/tex-epstopdf/PLIST3
-rw-r--r--graphics/tex-epstopdf/distinfo6
-rw-r--r--graphics/tex-epstopdf/patches/patch-bin_epstopdf26
5 files changed, 82 insertions, 0 deletions
diff --git a/graphics/tex-epstopdf/DESCR b/graphics/tex-epstopdf/DESCR
new file mode 100644
index 00000000000..a156dc17851
--- /dev/null
+++ b/graphics/tex-epstopdf/DESCR
@@ -0,0 +1,10 @@
+Epstopdf is a Perl script that converts an EPS file to an 'encapsulated'
+PDF file (a single page file whose media box is the same as the original
+EPS's bounding box). The resulting file suitable for inclusion by PDFTeX
+as an image. The script is adapted to run both on Windows and on
+Unix-alike systems. The script makes use of Ghostscript for the actual
+conversion to PDF. It assumes Ghostscript version 6.51 or later, and (by
+default) suppresses its automatic rotation of pages where most of the
+text is not horizontal. LaTeX users may make use of the epstopdf
+package, which will run the epstopdf script "on the fly", thus giving
+the illusion that PDFLaTeX is accepting EPS graphic files.
diff --git a/graphics/tex-epstopdf/Makefile b/graphics/tex-epstopdf/Makefile
new file mode 100644
index 00000000000..e28827885c0
--- /dev/null
+++ b/graphics/tex-epstopdf/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/26 20:33:02 minskim Exp $
+
+DISTNAME= epstopdf
+PKGNAME= tex-${DISTNAME}-2.16
+TEXLIVE_REV= 19287
+
+MAINTAINER= minskim@NetBSD.org
+COMMENT= Convert EPS to 'encapsulated' PDF using GhostScript
+
+CONFLICTS= texlive-pdftools<2011
+
+EVAL_PREFIX+= KPSEWHICH_PREFIX=kpathsea
+USE_TOOLS+= gs:run perl:run
+
+REPLACE_PERL= bin/epstopdf
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Setting paths to commands.
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= bin/epstopdf
+SUBST_SED.paths+= -e 's,@GHOSTSCRIPT@,${TOOLS_PATH.gs},g'
+SUBST_SED.paths+= -e 's,@KPSEWHICH@,${KPSEWHICH_PREFIX}/bin/kpsewhich,g'
+
+INSTALLATION_DIRS= bin
+TEX_TEXMF_DIRS= # empty
+
+.include "../../print/texlive/package.mk"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MV} ${WRKSRC}/texmf-dist/scripts/epstopdf/epstopdf.pl \
+ ${WRKSRC}/bin/epstopdf
+
+post-install:
+ ${LN} -sf epstopdf ${DESTDIR}${PREFIX}/bin/repstopdf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/tex-epstopdf/PLIST b/graphics/tex-epstopdf/PLIST
new file mode 100644
index 00000000000..bbf4314bc6d
--- /dev/null
+++ b/graphics/tex-epstopdf/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/26 20:33:02 minskim Exp $
+bin/epstopdf
+bin/repstopdf
diff --git a/graphics/tex-epstopdf/distinfo b/graphics/tex-epstopdf/distinfo
new file mode 100644
index 00000000000..f96684e1b44
--- /dev/null
+++ b/graphics/tex-epstopdf/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/26 20:33:02 minskim Exp $
+
+SHA1 (tex-epstopdf-19287/epstopdf.tar.xz) = 938ed63852efdf4d768a9d09314358bfee1463e1
+RMD160 (tex-epstopdf-19287/epstopdf.tar.xz) = d5933dba9c8422c9b682e65c508490258f4eac2f
+Size (tex-epstopdf-19287/epstopdf.tar.xz) = 8288 bytes
+SHA1 (patch-bin_epstopdf) = f4ca49bfd6c8b1f73ce1812c81a1a36ab0fb6d71
diff --git a/graphics/tex-epstopdf/patches/patch-bin_epstopdf b/graphics/tex-epstopdf/patches/patch-bin_epstopdf
new file mode 100644
index 00000000000..7bed0eb49f0
--- /dev/null
+++ b/graphics/tex-epstopdf/patches/patch-bin_epstopdf
@@ -0,0 +1,26 @@
+$NetBSD: patch-bin_epstopdf,v 1.1.1.1 2011/10/26 20:33:02 minskim Exp $
+
+Fix paths to commands: gs and kpathsea.
+
+--- bin/epstopdf.orig 2010-05-19 23:29:01.000000000 +0000
++++ bin/epstopdf
+@@ -1,4 +1,3 @@
+-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q'
+- if 0;
++#!/usr/bin/perl
+ use strict;
+
+@@ -165,5 +164,5 @@ my $on_windows_or_cygwin = $on_windows |
+
+ ### ghostscript command name
+-my $GS = $on_windows ? "gswin32c" : "gs";
++my $GS = "@GHOSTSCRIPT@";
+
+ ### restricted mode
+@@ -257,5 +256,5 @@ debug "Restricted mode activated" if $re
+
+ ### safer external commands for Windows in restricted mode
+-my $kpsewhich = 'kpsewhich';
++my $kpsewhich = '@KPSEWHICH@';
+ if ($restricted && $on_windows) {
+ use File::Basename;