aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-03-19 06:49:27 +0800
committerpav <pav@FreeBSD.org>2005-03-19 06:49:27 +0800
commit3b6c89632468871e220a5fb05e9c56e5a8881a7c (patch)
treec1d1f8d615491e5ea8b00954a7055bea0a7e34d9 /print
parent90a86e310f1a474168f67a5cbeed01b1757525c8 (diff)
downloadfreebsd-ports-gnome-3b6c89632468871e220a5fb05e9c56e5a8881a7c.tar.gz
freebsd-ports-gnome-3b6c89632468871e220a5fb05e9c56e5a8881a7c.tar.zst
freebsd-ports-gnome-3b6c89632468871e220a5fb05e9c56e5a8881a7c.zip
PDFjam, by David Firth, is a small collection of shell scripts
which provide a simple interface to some of the functionality of the pdfpages package (by Andreas Matthias) for pdfLaTeX. PR: ports/78921 Submitted by: Paul Chvostek <paul+ports@it.ca>
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-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
7 files changed, 99 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 446e3be0f6e8..6b7605aa6368 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -163,6 +163,7 @@
SUBDIR += passivetex
SUBDIR += pcal
SUBDIR += pclprint
+ SUBDIR += pdfjam
SUBDIR += pdflib
SUBDIR += pdflib-perl
SUBDIR += pdfmerge
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