<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20f4faa070827f244805e109f53ad5eb7cf057b5">https://github.com/macports/macports-ports/commit/20f4faa070827f244805e109f53ad5eb7cf057b5</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 20f4faa070827f244805e109f53ad5eb7cf057b5
</span>Author: someuser12 <macosx12345@yahoo.fr>
AuthorDate: Thu Jul 25 15:45:17 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> pdftk-java: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58757
</span>---
textproc/pdftk-java/Portfile | 59 ++++++++++++++++++++++++++++++++++++
textproc/pdftk-java/files/pdftk-java | 4 +++
2 files changed, 63 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/pdftk-java/Portfile b/textproc/pdftk-java/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7d21cc6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/pdftk-java/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,59 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name pdftk-java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git_project pdftk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# 1aab675 is single commit following 3.0.6 release containing minor bugfix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git_commit 1aab675b178baf38601f8898ca3530dc222bed97
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git_date 20190702
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.0.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories textproc graphics pdf java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A port of pdftk into java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://gitlab.com/pdftk-java/${git_project}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://gitlab.com/pdftk-java/${git_project}/-/archive/${git_commit}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 02546b6b1553348f4b5b74fd421a8ed2a84bd282 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 306c73693bc24fa7b6ea32967a7028cb027b4658f4eae96cb3a046c413da07d8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1360035
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 1.7+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bin:ant:apache-ant
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:bcprov \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:commons-lang3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir ${git_project}-${git_commit}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${worksrcpath}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/lib "ln -s ${prefix}/share/java/bcprov/bcprov.jar"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/lib "ln -s ${prefix}/share/java/commons-lang3.jar"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd ant
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set javadir ${destroot}${prefix}/share/java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 -d ${javadir}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${worksrcpath}/build/jar/${git_project}.jar ${javadir}/${name}/${git_project}.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install the wrapper script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${filespath}/pdftk-java ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/pdftk-java/files/pdftk-java b/textproc/pdftk-java/files/pdftk-java
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..20d1e5b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/pdftk-java/files/pdftk-java
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PREFIX=_PREFIX_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java -jar ${PREFIX}/share/java/pdftk-java/pdftk.jar "$@"
</span></pre><pre style='margin:0'>
</pre>