aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2017-09-02 20:57:20 +0800
committertobik <tobik@FreeBSD.org>2017-09-02 20:57:20 +0800
commit18c92cd90902eba147166823d7904aada8a5fe37 (patch)
tree33f85be5ff000af4479a9c1484b0ab3fc99e5250
parentefc37f2474de7c64e59bee30268c05656be2bdea (diff)
downloadfreebsd-ports-gnome-18c92cd90902eba147166823d7904aada8a5fe37.tar.gz
freebsd-ports-gnome-18c92cd90902eba147166823d7904aada8a5fe37.tar.zst
freebsd-ports-gnome-18c92cd90902eba147166823d7904aada8a5fe37.zip
New port: print/pdfstitch
Pdfstitcher can transform a regular multi-page PDF into a single-page PDF, which displays the pages in a grid. While there are other tools that do the same, pdfstitcher focuses on the following features: - Crop pages to a certain size - Adjust the crop position per page WWW: https://github.com/sur5r/pdfstitch PR: 221396 Submitted by: Stefan Hagen <ports@textmail.me> Reviewed by: ultima
-rw-r--r--print/Makefile1
-rw-r--r--print/pdfstitch/Makefile31
-rw-r--r--print/pdfstitch/distinfo3
-rw-r--r--print/pdfstitch/pkg-descr9
-rw-r--r--print/pdfstitch/pkg-plist2
5 files changed, 46 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 9d2d751d07f6..98e1f0960b0f 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -162,6 +162,7 @@
SUBDIR += pdfcube
SUBDIR += pdflib
SUBDIR += pdflib-perl
+ SUBDIR += pdfstitch
SUBDIR += pdftk
SUBDIR += pear-File_PDF
SUBDIR += pecl-haru
diff --git a/print/pdfstitch/Makefile b/print/pdfstitch/Makefile
new file mode 100644
index 000000000000..5527957a9955
--- /dev/null
+++ b/print/pdfstitch/Makefile
@@ -0,0 +1,31 @@
+# Created by: Stefan Hagen <ports@textmail.me>
+# $FreeBSD$
+
+PORTNAME= pdfstitch
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.4
+CATEGORIES= print
+
+MAINTAINER= ports@textmail.me
+COMMENT= Crop and stitch pages from PDF to larger, single-page PDF
+
+LICENSE= AGPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= textproc/p5-YAML>=1.10:textproc/p5-YAML \
+ devel/p5-File-LibMagic>=1.10:devel/p5-File-LibMagic \
+ textproc/p5-PDF-API2>=2.030:textproc/p5-PDF-API2
+
+USES= perl5
+USE_GITHUB= yes
+GH_ACCOUNT= sur5r
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/pdfstitch ${STAGEDIR}${PREFIX}/bin/pdfstitch
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/README
+
+.include <bsd.port.mk>
diff --git a/print/pdfstitch/distinfo b/print/pdfstitch/distinfo
new file mode 100644
index 000000000000..efbbe7f1469e
--- /dev/null
+++ b/print/pdfstitch/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1502780467
+SHA256 (sur5r-pdfstitch-v0.4_GH0.tar.gz) = 380ce7b4a28e7fa4b9e2027a2bfa46ffe645da07b1ef26dbf1b5d04288148def
+SIZE (sur5r-pdfstitch-v0.4_GH0.tar.gz) = 14606
diff --git a/print/pdfstitch/pkg-descr b/print/pdfstitch/pkg-descr
new file mode 100644
index 000000000000..0268dfc88d0d
--- /dev/null
+++ b/print/pdfstitch/pkg-descr
@@ -0,0 +1,9 @@
+Pdfstitcher can transform a regular multi-page PDF into a single-page PDF,
+which displays the pages in a grid.
+
+While there are other tools that do the same, pdfstitcher focuses on the
+following features:
+- Crop pages to a certain size
+- Adjust the crop position per page
+
+WWW: https://github.com/sur5r/pdfstitch
diff --git a/print/pdfstitch/pkg-plist b/print/pdfstitch/pkg-plist
new file mode 100644
index 000000000000..596bbc645b67
--- /dev/null
+++ b/print/pdfstitch/pkg-plist
@@ -0,0 +1,2 @@
+bin/pdfstitch
+%%PORTDOCS%%%%DOCSDIR%%/README