<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/fa3029b06b581c7595337454e4a18f8e11856e84">https://github.com/macports/macports-ports/commit/fa3029b06b581c7595337454e4a18f8e11856e84</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 fa3029b06b5 openjdk11-graalvm: fix subport pollution
</span>fa3029b06b5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fa3029b06b581c7595337454e4a18f8e11856e84
</span>Author: Nils Breunese <nils@breun.nl>
AuthorDate: Sun Aug 20 19:19:14 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> openjdk11-graalvm: fix subport pollution
</span>---
java/openjdk11-graalvm/Portfile | 118 ++++++++++++++++++++--------------------
1 file changed, 60 insertions(+), 58 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk11-graalvm/Portfile b/java/openjdk11-graalvm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index de2a9eddf01..13e6e34f84f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk11-graalvm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk11-graalvm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,28 +21,10 @@ if {${configure.build_arch} eq "arm64"} {
</span> version 22.3.3
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description GraalVM Community Edition based on OpenJDK 11
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R,\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- JVM-based languages like Java, Scala, Groovy, Kotlin, Clojure, and LLVM-based languages such as C and C++.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span>
master_sites https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${version}/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${configure.build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- distname graalvm-ce-java11-darwin-amd64-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 e596dc7f73ca0f602ae60ca5c1bc4247373ec158 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 cab6a1436626adc28ec0f72791772315678e7c758e2fbae2cb6758a38f27c56a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 254523003
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif {${configure.build_arch} eq "arm64"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- distname graalvm-ce-java11-darwin-aarch64-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 3421d1754a491b0cfa44d09df798ff5053fcefc8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 c59f32289d92671bea46a34f4227fef484a4aa9eeece159e59a486205aaa6c31 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 249144742
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-worksrcdir graalvm-ce-java11-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://www.graalvm.org
livecheck.type none
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,58 +32,78 @@ livecheck.type none
</span> use_configure no
build {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant Applets \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description { Advertise the JVM capability "Applets".} {}
</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}/openjdk11-graalvm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description GraalVM Community Edition based on OpenJDK 11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ JVM-based languages like Java, Scala, Groovy, Kotlin, Clojure, and LLVM-based languages such as C and C++.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname graalvm-ce-java11-darwin-amd64-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 e596dc7f73ca0f602ae60ca5c1bc4247373ec158 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cab6a1436626adc28ec0f72791772315678e7c758e2fbae2cb6758a38f27c56a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 254523003
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${configure.build_arch} eq "arm64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname graalvm-ce-java11-darwin-aarch64-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 3421d1754a491b0cfa44d09df798ff5053fcefc8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 c59f32289d92671bea46a34f4227fef484a4aa9eeece159e59a486205aaa6c31 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 249144742
</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;'>+ worksrcdir graalvm-ce-java11-${version}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant BundledApp \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description { Advertise the JVM capability "BundledApp". This is required by some java-based app bundles to recognize and use the JVM.} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant Applets \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description { Advertise the JVM capability "Applets".} {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant JNI \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description { Advertise the JVM capability "JNI". This is required by some java-based app bundles to recognize and use the JVM.} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant BundledApp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description { Advertise the JVM capability "BundledApp". This is required by some java-based app bundles to recognize and use the JVM.} {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant WebStart \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description { Advertise the JVM capability "WebStart".} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant JNI \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description { Advertise the JVM capability "JNI". This is required by some java-based app bundles to recognize and use the JVM.} {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach var { Applets BundledApp JNI WebStart } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset ${var}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^(\[\[:space:\]\]*<string>)CommandLine(</string>)|\\1${var}\\2\\\n\\1CommandLine\\2|" ${worksrcpath}/Contents/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant WebStart \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description { Advertise the JVM capability "WebStart".} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach var { Applets BundledApp JNI WebStart } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset ${var}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|^(\[\[:space:\]\]*<string>)CommandLine(</string>)|\\1${var}\\2\\\n\\1CommandLine\\2|" ${worksrcpath}/Contents/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd Contents/Home/bin/java
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.args -version
</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 Contents/Home/bin/java
</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:#ffe0e0;'>-# macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.violate_mtree yes
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.violate_mtree yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set jvms /Library/Java/JavaVirtualMachines
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set jdk ${jvms}/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-install {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Clean up previous installation, because some old subport files may have been left behind (https://trac.macports.org/ticket/67935)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Don't remove before 2024-08-20
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${jdk}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-install {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Clean up previous installation, because some old subport files may have been left behind (https://trac.macports.org/ticket/67935)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Don't remove before 2024-08-20
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${jdk}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}${jdk}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/Contents ${destroot}${prefix}${jdk}
</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}${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:#ffe0e0;'>- # 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:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${jvms}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s ${prefix}${jdk} ${destroot}${jdk}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-notes "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-If you have more than one JDK installed you can make ${name} the default\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-by adding the following line to your shell profile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ If you have more than one JDK installed you can make ${name} the default\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ by adding the following line to your shell profile:
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- export JAVA_HOME=${jdk}/Contents/Home
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export JAVA_HOME=${jdk}/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
subport ${name}-native-image {
depends_lib port:${name}
</pre><pre style='margin:0'>
</pre>