<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/f5e13a320b566bee0f5da6e2fe77d9fae698d4b2">https://github.com/macports/macports-ports/commit/f5e13a320b566bee0f5da6e2fe77d9fae698d4b2</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 f5e13a320b5 openjdk17: install files under ${prefix}
</span>f5e13a320b5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f5e13a320b566bee0f5da6e2fe77d9fae698d4b2
</span>Author: Nils Breunese <nils@breun.nl>
AuthorDate: Sun Aug 20 19:53:53 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> openjdk17: install files under ${prefix}
</span>---
java/openjdk17/Portfile | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk17/Portfile b/java/openjdk17/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 22229c58dfb..ce926868341 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk17/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk17/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ name openjdk17
</span> # See https://github.com/openjdk/jdk17u/tags for the version and build number that matches the latest tag that ends with '-ga'
version 17.0.8
set build 7
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories java devel
supported_archs x86_64 arm64
license GPL-2+
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,7 +36,7 @@ pre-patch {
</span> reinplace "s|xmacosx|xwindows|g" ${worksrcpath}/make/autoconf/lib-freetype.m4
}
<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_xcode yes
use_configure yes
configure.cmd ${prefix}/bin/bash configure
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -134,10 +134,18 @@ 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;'>+
</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;'>@@ -146,7 +154,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>