<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/4d53947cba818c7fda6f65c88b13a6b89f6d4a63">https://github.com/macports/macports-ports/commit/4d53947cba818c7fda6f65c88b13a6b89f6d4a63</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 4d53947cba8 openjdk11: update to 11.0.20.1, install files under ${prefix}
</span>4d53947cba8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4d53947cba818c7fda6f65c88b13a6b89f6d4a63
</span>Author: Nils Breunese <nils@breun.nl>
AuthorDate: Sat Aug 26 10:53:20 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> openjdk11: update to 11.0.20.1, install files under ${prefix}
</span>---
java/openjdk11/Portfile | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk11/Portfile b/java/openjdk11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 834b06e7c42..827ad36dbd3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,8 +4,8 @@ PortSystem 1.0
</span>
name openjdk11
# See https://github.com/openjdk/jdk11u/tags for the version and build number that matches the latest tag that ends with '-ga'
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 11.0.20
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set build 8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 11.0.20.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set build 1
</span> revision 0
categories java devel
supported_archs x86_64 arm64
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,9 +19,9 @@ master_sites https://git.openjdk.java.net/jdk11u/archive/refs/tags
</span> distname jdk-${version}-ga
worksrcdir jdk11u-${distname}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 94c405bcaf41bf83935bbb16a2baf76695704719 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 a277b89ff5ade85d3b5885ad7bffb3f2d9c80df47363fedb9110b62c45dbec37 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 116150371
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 28af98dd0a68ce252016e713cd147d5cb63d88de \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fe8012c253573536990ad0f987e0ffeae75a12f1dbd7c02caed8ea899006c313 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 116165519
</span>
depends_lib port:freetype
depends_build port:autoconf \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,7 +35,7 @@ pre-patch {
</span> reinplace "s|assert|vmassert|g" ${worksrcpath}/src/hotspot/share/jfr/periodic/jfrNetworkUtilization.cpp
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set tpath /Library/Java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set tpath ${prefix}/Library/Java
</span> use_configure yes
configure.cmd ${prefix}/bin/bash configure
configure.pre_args --prefix=${tpath}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -142,10 +142,17 @@ test.cmd ${bundle_dir}/Home/bin/java
</span> test.target --version
set pathb ${tpath}/JavaVirtualMachines/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set jvms /Library/Java/JavaVirtualMachines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set jdk ${jvms}/${name}
</span> destroot {
xinstall -m 755 -d ${destroot}${pathb}
copy ${worksrcpath}/${bundle_dir} ${destroot}${pathb}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, so let's create a symlink there
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${jvms}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${pathb} ${destroot}${jdk}
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}.
</span> destroot.violate_mtree yes
post-destroot {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -154,7 +161,7 @@ post-destroot {
</span>
notes "
If you want to make ${name} the default JDK, add this to shell profile:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-export JAVA_HOME=${pathb}/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export JAVA_HOME=${jdk}/Contents/Home
</span> "
livecheck.type regex
</pre><pre style='margin:0'>
</pre>