<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b37648754e80fd952d8682211ee07c7b0780b66a">https://github.com/macports/macports-ports/commit/b37648754e80fd952d8682211ee07c7b0780b66a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b37648754e80fd952d8682211ee07c7b0780b66a
</span>Author: Vadim-Valdis Yudaev <judaew@outlook.de>
AuthorDate: Mon May 10 01:09:58 2021 +0300
<span style='display:block; white-space:pre;color:#404040;'> pmd: Update to 6.34.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixed: https://trac.macports.org/ticket/32186
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Changes:
</span><span style='display:block; white-space:pre;color:#404040;'> * Update to 6.34.0
</span><span style='display:block; white-space:pre;color:#404040;'> * Switch to Github repository
</span><span style='display:block; white-space:pre;color:#404040;'> * Add doc variant
</span>---
java/pmd/Portfile | 75 +++++++++++++++++++++++++++++++------------------------
1 file changed, 43 insertions(+), 32 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/pmd/Portfile b/java/pmd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a92628c3d85..3b498346e3f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/pmd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/pmd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,54 +1,65 @@
</span> PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 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:#ffe0e0;'>-name pmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 3.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup pmd pmd 6.34.0 pmd_releases/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories java lang
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {BSD Apache-2}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {outlook.de:judaew @judaew} openmaintainer
</span>
description PMD is a Java source code analyzer
long_description PMD is a Java source code analyzer. It finds unused \
variables, empty catch blocks, unnecessary object \
creation, and so forth.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://pmd.sourceforge.net/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname ${name}-src-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 2ddefa2c0aa890693e2ce07a548b189f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://pmd.github.io
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_zip yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-bin-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ${distname}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 93a0d710d5fa3fe412e7dade33f26c0212f84f89 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fb2f85fd36a243116340b6aafcbbb74eac982c27f8c22cd0860f1e08aef63a4c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 44426032
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 1.8+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk11
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build bin:ant:apache-ant port:junit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-worksrcdir ${name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant doc description "Include offline documentation" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles-append ${name}-doc-${version}${extract.suffix}:doc
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Ensure this gets rebuilt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete ${worksrcpath}/lib/pmd-${version}.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums-append ${name}-doc-${version}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 9252dc75d103b16142581d156c3b4fdaf97920ec \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 c8c5b9fb5a65aa0c89e7d17c85eeada0c1dea08accb70befa5a43cfaa3bcb2a9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4648243
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob -directory ${worksrcpath}/bin *.bat]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.cmd ant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target dist
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.dir ${worksrcpath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/bin/run.sh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/java/${name}/bin
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args -lib ${prefix}/share/java/junit.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/LICENSE \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/java/${name}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install the wrapper script
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 ${filespath}/pmd ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/pmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install jars
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/pmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${worksrcpath}/rulesets ${destroot}${prefix}/share/pmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach file [glob ${worksrcpath}/lib/*.jar] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 ${file} ${destroot}${prefix}/share/pmd/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${destroot}${prefix}/share/pmd && ln -s pmd-${version}.jar pmd.jar"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/share/java/${name}/bin/run.sh ${destroot}${prefix}/bin/${name}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install documentation
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/doc/pmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/pmd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset doc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move {*}[glob -directory ${workpath}/${name}-doc-${version} *] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/java/${name}/doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
</pre><pre style='margin:0'>
</pre>