aboutsummaryrefslogtreecommitdiff
path: root/print/pdfjam
diff options
context:
space:
mode:
Diffstat (limited to 'print/pdfjam')
-rw-r--r--print/pdfjam/Makefile49
-rw-r--r--print/pdfjam/distinfo2
-rw-r--r--print/pdfjam/files/patch-scripts-pdf9011
-rw-r--r--print/pdfjam/files/patch-scripts-pdfjoin11
-rw-r--r--print/pdfjam/files/patch-scripts-pdfnup11
-rw-r--r--print/pdfjam/pkg-descr14
6 files changed, 98 insertions, 0 deletions
diff --git a/print/pdfjam/Makefile b/print/pdfjam/Makefile
new file mode 100644
index 000000000000..456efb799263
--- /dev/null
+++ b/print/pdfjam/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: pdfjam
+# Date created: Tue Mar 15 17:50:34 EST 2005
+# Whom: Paul Chvostek <paul@it.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pdfjam
+PORTVERSION= 1.20
+CATEGORIES= print
+MASTER_SITES= http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/ \
+ http://www.it.ca/~paul/src/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= paul+ports@it.ca
+COMMENT= Shell scripts to manipulate PDF files
+
+RUN_DEPENDS= pdflatex:${PORTSDIR}/print/teTeX-base
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+MAN1= pdfjoin.1 pdf90.1 pdfnup.1
+PLIST_FILES= bin/pdfjoin bin/pdf90 bin/pdfnup
+PORTDOCS= PDFjam-README.html pdfdroplets.png
+
+NO_BUILD= yes
+
+post-patch:
+ @${LN} -s scripts ${WRKSRC}/bin
+.for FILE in ${PLIST_FILES}
+ @${SED} -i '' "1s:^#! /bin/sh:#!${SH}:;s:__LOCALBASE__:${LOCALBASE}:" ${WRKSRC}/${FILE}
+.endfor
+
+do-install:
+.for FILE in ${PLIST_FILES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
+.endfor
+.for FILE in ${MAN1}
+ ${INSTALL_MAN} ${WRKSRC}/man1/${FILE} ${PREFIX}/man/man1
+.endfor
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for FILE in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/print/pdfjam/distinfo b/print/pdfjam/distinfo
new file mode 100644
index 000000000000..f4f9609f5e3a
--- /dev/null
+++ b/print/pdfjam/distinfo
@@ -0,0 +1,2 @@
+MD5 (pdfjam_1.20.tgz) = 3e443fd2c0063330313c1c079053e622
+SIZE (pdfjam_1.20.tgz) = 52814
diff --git a/print/pdfjam/files/patch-scripts-pdf90 b/print/pdfjam/files/patch-scripts-pdf90
new file mode 100644
index 000000000000..b74215937629
--- /dev/null
+++ b/print/pdfjam/files/patch-scripts-pdf90
@@ -0,0 +1,11 @@
+--- scripts/pdf90.orig Tue Jan 25 14:19:21 2005
++++ scripts/pdf90 Wed Mar 16 09:16:35 2005
+@@ -23,7 +23,7 @@
+ ##
+ ## First say where your "pdflatex" program lives:
+ ##
+-pdflatex=pdflatex
++pdflatex=__LOCALBASE__/bin/pdflatex
+ #pdflatex="pdflatex.exe" ## this for Windows computers
+ ##
+ ## Next a permitted location for temporary files on your system:
diff --git a/print/pdfjam/files/patch-scripts-pdfjoin b/print/pdfjam/files/patch-scripts-pdfjoin
new file mode 100644
index 000000000000..bd590ffdbe5d
--- /dev/null
+++ b/print/pdfjam/files/patch-scripts-pdfjoin
@@ -0,0 +1,11 @@
+--- scripts/pdfjoin.orig Tue Jan 25 14:19:21 2005
++++ scripts/pdfjoin Wed Mar 16 09:16:42 2005
+@@ -23,7 +23,7 @@
+ ##
+ ## First say where your "pdflatex" program lives:
+ ##
+-pdflatex=pdflatex
++pdflatex=__LOCALBASE__/bin/pdflatex
+ #pdflatex="pdflatex.exe" ## this for Windows computers
+ ##
+ ## Next a permitted location for temporary files on your system:
diff --git a/print/pdfjam/files/patch-scripts-pdfnup b/print/pdfjam/files/patch-scripts-pdfnup
new file mode 100644
index 000000000000..227a38a1e08f
--- /dev/null
+++ b/print/pdfjam/files/patch-scripts-pdfnup
@@ -0,0 +1,11 @@
+--- scripts/pdfnup.orig Tue Jan 25 14:19:21 2005
++++ scripts/pdfnup Wed Mar 16 09:17:40 2005
+@@ -23,7 +23,7 @@
+ ##
+ ## First say where your "pdflatex" program lives:
+ ##
+-pdflatex=pdflatex
++pdflatex=__LOCALBASE__/bin/pdflatex
+ #pdflatex="pdflatex.exe" ## this for Windows computers
+ ##
+ ## Next a permitted location for temporary files on your system:
diff --git a/print/pdfjam/pkg-descr b/print/pdfjam/pkg-descr
new file mode 100644
index 000000000000..f7040f7c05d8
--- /dev/null
+++ b/print/pdfjam/pkg-descr
@@ -0,0 +1,14 @@
+PDFjam, by David Firth, is a small collection of shell scripts which provide a
+simple interface to some of the functionality of the excellent pdfpages package
+(by Andreas Matthias) for pdfLaTeX. At present the utilities available are:
+
+ * pdfnup, which allows PDF files to be "n-upped" in roughly the way that psnup
+ does for PostScript files.
+ * pdfjoin, which concatenates the pages of multiple PDF files together into a
+ single file
+ * pdf90, which rotates the pages of one or more PDF files through 90 degrees
+ (anti-clockwise).
+
+- Paul Chvostek <paul+ports@it.ca>
+
+WWW: http://www.warwick.ac.uk/go/pdfjam