Skip to content

Commit

Permalink
openjdk21-corretto: update minimum OS version (#26083)
Browse files Browse the repository at this point in the history
  • Loading branch information
breun authored Oct 6, 2024
1 parent dadf362 commit ec5378e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions java/openjdk21-corretto/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

PortSystem 1.0

name openjdk21-corretto
set feature 21
name openjdk${feature}-corretto
categories java devel
maintainers {breun.nl:nils @breun} openmaintainer

# See https://aws.amazon.com/corretto/faqs/#Using_Amazon_Corretto
# and https://trac.macports.org/wiki/PortfileRecipes#compare-osx-darwin-version
platforms {darwin any} {darwin >= 21}
# JVMMinimumSystemVersion in Contents/Info.plist is set to macOS 11.0:
# /usr/libexec/PlistBuddy -c "Print :JavaVM:JVMMinimumSystemVersion" Contents/Info.plist
# Mapping to Darwin version: https://trac.macports.org/wiki/PortfileRecipes#compare-osx-darwin-version
platforms {darwin any >= 20 }

# This port uses prebuilt binaries; 'NoMirror' makes sure MacPorts doesn't mirror/distribute these third-party binaries
license GPL-2 NoMirror
Expand All @@ -19,10 +21,10 @@ universal_variant no
supported_archs x86_64 arm64

# https://github.com/corretto/corretto-21/releases
version 21.0.4.7.1
version ${feature}.0.4.7.1
revision 0

description Amazon Corretto OpenJDK 21 (Long Term Support)
description Amazon Corretto OpenJDK ${feature} (Long Term Support)
long_description No-cost, multiplatform, production-ready distribution of OpenJDK from Amazon.

master_sites https://corretto.aws/downloads/resources/${version}/
Expand All @@ -39,13 +41,13 @@ if {${configure.build_arch} eq "x86_64"} {
size 201257714
}

worksrcdir amazon-corretto-21.jdk
worksrcdir amazon-corretto-${feature}.jdk

homepage https://aws.amazon.com/corretto/

livecheck.type regex
livecheck.url https://github.com/corretto/corretto-21/releases
livecheck.regex amazon-corretto-(21\.\[0-9\.\]+)-macosx-.*\.tar\.gz
livecheck.url https://github.com/corretto/corretto-${feature}/releases
livecheck.regex amazon-corretto-(${feature}\.\[0-9\.\]+)-macosx-.*\.tar\.gz

use_configure no
build {}
Expand Down Expand Up @@ -79,7 +81,7 @@ test.args -version
destroot.violate_mtree yes

set jvms /Library/Java/JavaVirtualMachines
set jdk ${jvms}/jdk-21-amazon-corretto.jdk
set jdk ${jvms}/jdk-${feature}-amazon-corretto.jdk

destroot {
xinstall -m 755 -d ${destroot}${prefix}${jdk}
Expand Down

0 comments on commit ec5378e

Please sign in to comment.