<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/07092552539fdc56f526f53f0c671bef8e93eb98">https://github.com/macports/macports-ports/commit/07092552539fdc56f526f53f0c671bef8e93eb98</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 07092552539 openjdk18: new port
</span>07092552539 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 07092552539fdc56f526f53f0c671bef8e93eb98
</span>Author: usersxx <97012123+usersxx@users.noreply.github.com>
AuthorDate: Mon Mar 28 21:35:17 2022 +0530
<span style='display:block; white-space:pre;color:#404040;'> openjdk18: new port
</span>---
java/openjdk18/Portfile | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk18/Portfile b/java/openjdk18/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a1dd4ba39c8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk18/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name openjdk18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/openjdk/jdk18/tags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories java devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs x86_64 arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {outlook.com:usersword123 @usersxx} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Openjdk 18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description JDK 18 builds of Openjdk, the Open-Source implementation \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of the Java Platform, Standard Edition, and related projects.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://openjdk.java.net/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fetch.type git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git.url https://github.com/openjdk/jdk18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+git.branch jdk-${version}-ga
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:autoconf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:openjdk17-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set tpath /Library/Java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xcode yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd sh configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args --prefix=${tpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# default configure args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --with-debug-level=release \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-native-debug-symbols=none \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-version-pre=release \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sysroot=`xcrun --sdk macosx --show-sdk-path` \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-jvm-variants=server \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-boot-jdk=/Library/Java/JavaVirtualMachines/openjdk17-bootstrap/Contents/Home \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-warnings-as-errors \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-conf-name=openjdk${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.type gnu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target images
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set jdkn jdk-${version}.jdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set bundle_dir build/openjdk${version}/images/jdk-bundle/${jdkn}/Contents
</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 ${bundle_dir}/Home/bin/java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target --version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pathb ${tpath}/JavaVirtualMachines/${name}
</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}${pathb}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/${bundle_dir} ${destroot}${pathb}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.violate_mtree yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${worksrcpath}
</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;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+If you want to make ${subport} the default JDK, add this to shell profile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export JAVA_HOME=${pathb}/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>