summaryrefslogtreecommitdiff
path: root/graphics/tex-pdfcrop
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/tex-pdfcrop')
-rw-r--r--graphics/tex-pdfcrop/DESCR2
-rw-r--r--graphics/tex-pdfcrop/Makefile31
-rw-r--r--graphics/tex-pdfcrop/PLIST2
-rw-r--r--graphics/tex-pdfcrop/distinfo6
-rw-r--r--graphics/tex-pdfcrop/patches/patch-bin_pdfcrop12
5 files changed, 53 insertions, 0 deletions
diff --git a/graphics/tex-pdfcrop/DESCR b/graphics/tex-pdfcrop/DESCR
new file mode 100644
index 00000000000..d99ba5a8158
--- /dev/null
+++ b/graphics/tex-pdfcrop/DESCR
@@ -0,0 +1,2 @@
+A Perl script that can either trim pages of any whitespace border, or
+trim them of a fixed border.
diff --git a/graphics/tex-pdfcrop/Makefile b/graphics/tex-pdfcrop/Makefile
new file mode 100644
index 00000000000..a72c11b815c
--- /dev/null
+++ b/graphics/tex-pdfcrop/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/27 18:05:13 minskim Exp $
+
+DISTNAME= pdfcrop
+PKGNAME= tex-${DISTNAME}-1.32
+TEXLIVE_REV= 23499
+
+MAINTAINER= minskim@NetBSD.org
+COMMENT= Crop PDF graphics
+
+CONFLICTS= teTeX-bin<3.0nb49
+
+USE_TOOLS+= gs:run perl:run
+
+REPLACE_PERL= bin/pdfcrop
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Setting paths to commands.
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= bin/pdfcrop
+SUBST_SED.paths+= -e 's,@GHOSTSCRIPT@,${TOOLS_PATH.gs},g'
+
+TEX_TEXMF_DIRS= # empty
+
+.include "../../print/texlive/package.mk"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MV} ${WRKSRC}/texmf-dist/scripts/pdfcrop/pdfcrop.pl \
+ ${WRKSRC}/bin/pdfcrop
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/tex-pdfcrop/PLIST b/graphics/tex-pdfcrop/PLIST
new file mode 100644
index 00000000000..defd048ec56
--- /dev/null
+++ b/graphics/tex-pdfcrop/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/27 18:05:13 minskim Exp $
+bin/pdfcrop
diff --git a/graphics/tex-pdfcrop/distinfo b/graphics/tex-pdfcrop/distinfo
new file mode 100644
index 00000000000..cdde5cefd80
--- /dev/null
+++ b/graphics/tex-pdfcrop/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/27 18:05:13 minskim Exp $
+
+SHA1 (tex-pdfcrop-23499/pdfcrop.tar.xz) = e0a236ccae4fa12b17a2f6616666b5d778b54ef7
+RMD160 (tex-pdfcrop-23499/pdfcrop.tar.xz) = fd299f08904fef9a913b7d3489cb2289c17ee3bf
+Size (tex-pdfcrop-23499/pdfcrop.tar.xz) = 9900 bytes
+SHA1 (patch-bin_pdfcrop) = 344bb78acd65c2d750220043aaa13f549d7e742e
diff --git a/graphics/tex-pdfcrop/patches/patch-bin_pdfcrop b/graphics/tex-pdfcrop/patches/patch-bin_pdfcrop
new file mode 100644
index 00000000000..4afb50d22ef
--- /dev/null
+++ b/graphics/tex-pdfcrop/patches/patch-bin_pdfcrop
@@ -0,0 +1,12 @@
+$NetBSD: patch-bin_pdfcrop,v 1.1.1.1 2011/10/27 18:05:13 minskim Exp $
+
+--- bin/pdfcrop.orig 2011-10-27 17:31:01.000000000 +0000
++++ bin/pdfcrop
+@@ -118,6 +118,7 @@ $archname = 'unknown' unless defined $Co
+ # get Ghostscript command name
+ $::opt_gscmd = '';
+ sub find_ghostscript () {
++ $::opt_gscmd = "@GHOSTSCRIPT@";
+ return if $::opt_gscmd;
+ my $system = 'unix';
+ $system = "dos" if $^O =~ /dos/i;