<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/7f228f9abb77115cf43e8a5a0c34dc1379b30fb7">https://github.com/macports/macports-ports/commit/7f228f9abb77115cf43e8a5a0c34dc1379b30fb7</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 7f228f9abb7 openjdk20-corretto: install files under ${prefix}
</span>7f228f9abb7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7f228f9abb77115cf43e8a5a0c34dc1379b30fb7
</span>Author: Nils Breunese <nils@breun.nl>
AuthorDate: Sun Aug 20 16:11:21 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> openjdk20-corretto: install files under ${prefix}
</span>---
java/openjdk20-corretto/Portfile | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk20-corretto/Portfile b/java/openjdk20-corretto/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5d09cd16bc4..43d751f1dd6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk20-corretto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk20-corretto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,7 +15,7 @@ supported_archs x86_64 arm64
</span>
# https://github.com/corretto/corretto-20/releases
version 20.0.2.9.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
description Amazon Corretto OpenJDK 20 (Short Term Support)
long_description No-cost, multiplatform, production-ready distribution of OpenJDK from Amazon.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -83,17 +83,21 @@ test.args -version
</span> # macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}.
destroot.violate_mtree yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set target /Library/Java/JavaVirtualMachines/jdk-20-amazon-corretto.jdk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set destroot_target ${destroot}${target}
</span><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}/jdk-20-amazon-corretto.jdk
</span>
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot_target}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/Contents ${destroot_target}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}${jdk}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/Contents ${destroot}${prefix}${jdk}
</span><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 ${prefix}${jdk} ${destroot}${jdk}
</span> }
notes "
If you have more than one JDK installed you can make ${name} the default\
by adding the following line to your shell profile:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- export JAVA_HOME=${target}/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export JAVA_HOME=${jdk}/Contents/Home
</span> "
</pre><pre style='margin:0'>
</pre>