Skip to content

Commit

Permalink
openjdk11-temurin: use feature variable and fix platform
Browse files Browse the repository at this point in the history
  • Loading branch information
breun committed Oct 22, 2024
1 parent 86dfa77 commit 4854fd9
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions java/openjdk11-temurin/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,40 @@

PortSystem 1.0

name openjdk11-temurin
set feature 11
name openjdk${feature}-temurin
categories java devel
maintainers {breun.nl:nils @breun} openmaintainer
platforms {darwin any}

# JVMMinimumSystemVersion in Contents/Info.plist is set to macOS 10.12 for x86_64:
# /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 >= 16 }

# This port uses prebuilt binaries; 'NoMirror' makes sure MacPorts doesn't mirror/distribute these third-party binaries
license GPL-2 NoMirror
# This port uses prebuilt binaries for a particular architecture; they are not universal binaries
universal_variant no

# https://adoptium.net/temurin/releases/
# https://adoptium.net/temurin/releases/?os=mac&version=11
supported_archs x86_64 arm64

version 11.0.24
version ${feature}.0.24
set build 8
revision 0

description Eclipse Temurin, based on OpenJDK 11
description Eclipse Temurin, based on OpenJDK ${feature}
long_description Eclipse Temurin provides secure, TCK-tested and compliant, production-ready Java runtimes.

master_sites https://github.com/adoptium/temurin11-binaries/releases/download/jdk-${version}%2B${build}/
master_sites https://github.com/adoptium/temurin${feature}-binaries/releases/download/jdk-${version}%2B${build}/

if {${configure.build_arch} eq "x86_64"} {
distname OpenJDK11U-jdk_x64_mac_hotspot_${version}_${build}
distname OpenJDK${feature}U-jdk_x64_mac_hotspot_${version}_${build}
checksums rmd160 d9223baa629fe84d82bbe9a1a811784f3cc7dde2 \
sha256 07a1be21f45f0951db05516e57602c414295c51a920f7e9b6ddeaa325d619b28 \
size 187710109
} elseif {${configure.build_arch} eq "arm64"} {
distname OpenJDK11U-jdk_aarch64_mac_hotspot_${version}_${build}
distname OpenJDK${feature}U-jdk_aarch64_mac_hotspot_${version}_${build}
checksums rmd160 651a5dda4c260e6d0574e973264fbb2c91a3cfc2 \
sha256 8bcbb98e293fb3c4d5cae3539f240ed478fae85962311fccd4c628ebad3a90e4 \
size 185018067
Expand All @@ -40,8 +46,8 @@ worksrcdir jdk-${version}+${build}
homepage https://adoptium.net

livecheck.type regex
livecheck.url https://github.com/adoptium/temurin11-binaries/releases
livecheck.regex OpenJDK11U-jdk_.*_mac_hotspot_(\[0-9\.\]+)_\[0-9\]+.tar.gz
livecheck.url https://github.com/adoptium/temurin${feature}-binaries/releases
livecheck.regex OpenJDK${feature}U-jdk_.*_mac_hotspot_(\[0-9\.\]+)_\[0-9\]+.tar.gz

use_configure no
build {}
Expand Down

0 comments on commit 4854fd9

Please sign in to comment.