Skip to content
Permalink
Browse files

pdftk-java: Don't use commons-text

Remove unnecessary commons-text dependency and the source patch to use
it. StringEscapeUtils may be deprecated in commons-lang3, but it's still
there. Turns out the only reason why it didn't run before was that we
weren't specifying the class path.

See: https://trac.macports.org/ticket/58905
  • Loading branch information
ryandesign committed May 14, 2020
1 parent 067bad5 commit 81464b975460d1438b52331ea728e089bb2baebf
Showing with 3 additions and 7 deletions.
  1. +2 −6 textproc/pdftk-java/Portfile
  2. +1 −1 textproc/pdftk-java/files/pdftk-java.in
@@ -6,7 +6,7 @@ PortGroup gitlab 1.0
PortGroup java 1.0

gitlab.setup pdftk-java pdftk 3.1.1 v
revision 0
revision 1
checksums rmd160 ce4f3851b0d3dd46997bb719bdb7019e4a9f7ed8 \
sha256 7da20b5172fcbcda8c14e312cd6d40efa3abd4909d62de52403e1d2b418712fd \
size 1172831
@@ -27,18 +27,14 @@ depends_build-append \
bin:ant:apache-ant

depends_lib-append port:bcprov \
port:commons-lang3 \
port:commons-text

patchfiles commons-text.patch
port:commons-lang3

use_configure no

post-configure {
file mkdir ${worksrcpath}/lib
ln -s ${prefix}/share/java/bcprov/bcprov.jar ${worksrcpath}/lib/
ln -s ${prefix}/share/java/commons-lang3.jar ${worksrcpath}/lib/
ln -s ${prefix}/share/java/commons-text.jar ${worksrcpath}/lib/
}

build.cmd ant
@@ -1,4 +1,4 @@
#!/bin/sh
exec java \
-cp @PREFIX@/share/java/pdftk-java/pdftk.jar:@PREFIX@/share/java/bcprov/bcprov.jar:@PREFIX@/share/java/commons-lang3.jar:@PREFIX@/share/java/commons-text.jar \
-cp @PREFIX@/share/java/pdftk-java/pdftk.jar:@PREFIX@/share/java/bcprov/bcprov.jar:@PREFIX@/share/java/commons-lang3.jar \
com.gitlab.pdftk_java.pdftk "$@"

0 comments on commit 81464b9

Please sign in to comment.
You can’t perform that action at this time.