<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cb7fb59639ddec2d910bec8342fde031faab6a7e">https://github.com/macports/macports-ports/commit/cb7fb59639ddec2d910bec8342fde031faab6a7e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new cb7fb59639d maven4: new submission (#27040)
</span>cb7fb59639d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cb7fb59639ddec2d910bec8342fde031faab6a7e
</span>Author: Nils Breunese <breun@macports.org>
AuthorDate: Sun Dec 15 16:31:22 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> maven4: new submission (#27040)
</span>---
java/maven4/Portfile | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
java/maven4/files/maven4 | 2 ++
2 files changed, 93 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/maven4/Portfile b/java/maven4/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ae5da169c83
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/maven4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,91 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</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 select 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 maven4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Until the final 4.0.0 release is out, we use a version that sorts before 4.0.0 to avoid upgrade problems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.9.9-rc1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set real_version 4.0.0-rc-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories java devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {breun.nl:nils @breun} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms any
</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;'>+description Apache Maven 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Apache Maven is a software project management and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ comprehension tool. Based on the concept of a project object \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ model (POM), Maven can manage a project's build, reporting \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and documentation from a central piece of information.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://maven.apache.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites apache:maven/maven-4/${real_version}/binaries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname apache-maven-${real_version}-bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir apache-maven-${real_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 9fa4fa1b1f4a51dc131cddcbc4f93515b342779e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 3eacaf7d3f3bd7733b8589ac1a35a77f59e607ebf41ca6c0981d7e3ee767da9d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 13901426
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 17+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run port:maven_select
</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;'>+select.group maven
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+select.file ${filespath}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Source builds of maven are not possible. So, the default build is a binary
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# install of the jars.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {
</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;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mavendir ${destroot}${prefix}/share/java/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Create the target java directory exists
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${mavendir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy over the needed elements of our directory tree
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/boot \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/conf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${mavendir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Reduce the permissions on the distribution files.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${mavendir}/conf -permissions 0755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${mavendir}/conf/settings.xml -permissions 0644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [glob -directory ${mavendir}/boot *.jar] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes $f -permissions 0644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [glob -directory ${mavendir}/lib *.jar] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes $f -permissions 0644
</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;'>+ # Symlink maven into the bin directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ../share/java/${name}/bin/mvn ${destroot}${prefix}/bin/mvn4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ../share/java/${name}/bin/mvnDebug ${destroot}${prefix}/bin/mvnDebug4
</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;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd bin/mvn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.args --version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"- To make maven ${real_version} the default, please run: sudo port select --set ${select.group} ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- To add bash completions, install port maven-completion"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${homepage}docs/history.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex >(4\\.\[0-9.\]+\\.\[0-9.\]+)</
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/maven4/files/maven4 b/java/maven4/files/maven4
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2a6cc6096c8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/maven4/files/maven4
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/mvn4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/mvnDebug4
</span></pre><pre style='margin:0'>
</pre>