pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pdfjam3: import pdfjam3-3.03 as wip/pdfjam3



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Tue Jul 13 22:34:21 2021 +0200
Changeset:	b4115d8633ae8fb1510e93bd7fd39bd1a595b1b1

Modified Files:
	Makefile
Added Files:
	pdfjam3/DESCR
	pdfjam3/Makefile
	pdfjam3/PLIST
	pdfjam3/distinfo
	pdfjam3/patches/patch-bin_pdfjam

Log Message:
pdfjam3: import pdfjam3-3.03 as wip/pdfjam3

* Motivation for a separate package:

This updates print/pdfjam to version pdfjam-3.03, The project
has a new maintainer and the scripts pdf90, pdfnup, and so on,
are no longer supported or distributed with the project.  The
(unsupported) scripts are kept in a separate repository:

 https://github.com/rrthomas/pdfjam-extras

To avoid user surprises (i.e. all the commands disappeared),
the package is currently named pdfjam3, and the script and
documentation as well.

* Description:

The pdfjam package makes available the pdfjam shell script that
provides a simple interface to much of the functionality of the
excellent pdfpages package (by Andreas Matthias) for LaTeX. The
pdfjam script takes one or more PDF files (and/or JPG/PNG graphics
files) as input, and produces one or more PDF files as output. It
is useful for joining files together, selecting pages, reducing
several source pages onto one output page, etc., etc.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b4115d8633ae8fb1510e93bd7fd39bd1a595b1b1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                         |  1 +
 pdfjam3/DESCR                    |  7 +++++++
 pdfjam3/Makefile                 | 32 ++++++++++++++++++++++++++++++++
 pdfjam3/PLIST                    |  3 +++
 pdfjam3/distinfo                 |  7 +++++++
 pdfjam3/patches/patch-bin_pdfjam | 30 ++++++++++++++++++++++++++++++
 6 files changed, 80 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ee9114068c..cef39d0642 100644
--- a/Makefile
+++ b/Makefile
@@ -2976,6 +2976,7 @@ SUBDIR+=	pcp
 SUBDIR+=	pcsx2
 SUBDIR+=	pdb2ldif
 SUBDIR+=	pdfcrack
+SUBDIR+=	pdfjam3
 SUBDIR+=	pdfminer
 SUBDIR+=	pdftk
 SUBDIR+=	pdnsd
diff --git a/pdfjam3/DESCR b/pdfjam3/DESCR
new file mode 100644
index 0000000000..099ddee407
--- /dev/null
+++ b/pdfjam3/DESCR
@@ -0,0 +1,7 @@
+The pdfjam package makes available the pdfjam shell script that
+provides a simple interface to much of the functionality of the
+excellent pdfpages package (by Andreas Matthias) for LaTeX. The
+pdfjam script takes one or more PDF files (and/or JPG/PNG graphics
+files) as input, and produces one or more PDF files as output. It
+is useful for joining files together, selecting pages, reducing
+several source pages onto one output page, etc., etc.
diff --git a/pdfjam3/Makefile b/pdfjam3/Makefile
new file mode 100644
index 0000000000..ffcb16c7ed
--- /dev/null
+++ b/pdfjam3/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+#
+
+GITHUB_PROJECT=	pdfjam
+GITHUB_TAG=	v3.03
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}3-${DISTNAME:S/v//}
+CATEGORIES=	print
+MASTER_SITES=	${MASTER_SITE_GITHUB:=rrthomas/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/rrthomas/pdfjam
+COMMENT=	Small collection of PDF utilities
+LICENSE=	gnu-gpl-v2
+
+DEPENDS+=	tex-latex-bin-[0-9]*:../../print/tex-latex-bin
+DEPENDS+=	tex-ms-[0-9]*:../../print/tex-ms
+DEPENDS+=	tex-eso-pic-[0-9]*:../../print/tex-eso-pic
+DEPENDS+=	tex-pdfpages-[0-9]*:../../print/tex-pdfpages
+
+NO_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG:S/v//}
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/pdfjam ${DESTDIR}${PREFIX}/bin/pdfjam3
+	${INSTALL_MAN} ${WRKSRC}/man1/pdfjam.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pdfjam3.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/pdfjam3/PLIST b/pdfjam3/PLIST
new file mode 100644
index 0000000000..6049426a12
--- /dev/null
+++ b/pdfjam3/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/pdfjam3
+man/man1/pdfjam3.1
diff --git a/pdfjam3/distinfo b/pdfjam3/distinfo
new file mode 100644
index 0000000000..ff3c40ac36
--- /dev/null
+++ b/pdfjam3/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (pdfjam/v3.03.tar.gz) = 393f9cbc4426fa6bd4d31d92b544200d68a3da48
+RMD160 (pdfjam/v3.03.tar.gz) = ad1212a0fcb123a3e0a94bfdcf3d11c78c7e82b8
+SHA512 (pdfjam/v3.03.tar.gz) = 270ec2c4c06b4b09eb3272254d9c6b87b282c3bb83afea275962cacc0050b539f31fa598e2219c46d166f8c4d6afcedda3b257694a09c752f91d0d5d20a8b0fe
+Size (pdfjam/v3.03.tar.gz) = 124264 bytes
+SHA1 (patch-bin_pdfjam) = fe50d84b74f9338c385be2d618568e28b5bc7957
diff --git a/pdfjam3/patches/patch-bin_pdfjam b/pdfjam3/patches/patch-bin_pdfjam
new file mode 100644
index 0000000000..2882300c44
--- /dev/null
+++ b/pdfjam3/patches/patch-bin_pdfjam
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Remove a problematic extra backslash `\'.
+
+--- bin/pdfjam.orig	2019-11-18 11:00:34.000000000 +0000
++++ bin/pdfjam
+@@ -1189,19 +1189,19 @@ EndTemplate
+     )  > "$texFile"
+ if test "$hyperref" = false; then  ## we don't need hyperref
+     cp "$texFile" "$tempFile"
+-    sed '/\\\usepackage{hyperref}/d' "$tempFile" | \
+-	sed '/\\\hypersetup.*/d' > "${texFile}"
++    sed '/\\usepackage{hyperref}/d' "$tempFile" | \
++	sed '/\\hypersetup.*/d' > "${texFile}"
+     rm "$tempFile"
+ fi
+ if test -z "$geometry" ; then geometry=false ; fi
+ if test "$geometry" = false; then   ## geometry package is not to be used
+     cp "$texFile" "$tempFile"
+-    sed '/\\\usepackage.*{geometry}/d' "$tempFile" > "$texFile"
++    sed '/\\usepackage.*{geometry}/d' "$tempFile" > "$texFile"
+     rm "$tempFile"
+ fi
+ if test -z "$pagecolor"; then   ## color package is not needed
+     cp "$texFile" "$tempFile"
+-    sed '/\\\usepackage.*{color}/d' "$tempFile" > "$texFile"
++    sed '/\\usepackage.*{color}/d' "$tempFile" > "$texFile"
+     rm "$tempFile"
+ fi
+ (cat <<EndTemplate


Home | Main Index | Thread Index | Old Index