From c12506dbb5d1de159e3b5f1d5be59f34ed96ac6e Mon Sep 17 00:00:00 2001 From: Nils Breunese Date: Wed, 23 Oct 2024 00:29:43 +0200 Subject: [PATCH] jdk17: note that version 17.0.13+ is not available via MacPorts (#26260) --- java/jdk17/Portfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/java/jdk17/Portfile b/java/jdk17/Portfile index 46ee7ebf85b3..d4643bde2d87 100644 --- a/java/jdk17/Portfile +++ b/java/jdk17/Portfile @@ -2,9 +2,10 @@ PortSystem 1.0 -name jdk17 +set feature 17 +name jdk${feature} categories java devel -maintainers {breun.nl:nils @breun} openmaintainer +maintainers nomaintainer platforms darwin # This port uses prebuilt binaries; 'NoMirror' makes sure MacPorts doesn't mirror/distribute these third-party binaries license NFTC NoMirror @@ -14,15 +15,17 @@ universal_variant no supported_archs x86_64 arm64 # https://www.oracle.com/java/technologies/downloads/#jdk17-mac -version 17.0.12 +version ${feature}.0.12 revision 0 -description Oracle Java SE Development Kit 17 +description Oracle Java SE Development Kit ${feature} long_description Java Platform, Standard Edition Development Kit (JDK). \ The JDK is a development environment for building applications and components using the Java programming language. \ - This software is provided under the Oracle No-Fee Terms and Conditions (NFTC) license (https://java.com/freeuselicense). + This software is provided under the Oracle No-Fee Terms and Conditions (NFTC) license (https://java.com/freeuselicense). \ + Oracle JDK ${feature}.0.13 and later are only available under the OTN license and therefore cannot be made available via MacPorts. \ + If you require an up-to-date JDK ${feature}, consider installing the 'openjdk${feature}' or another openjdk${feature}-* port instead. -master_sites https://download.oracle.com/java/17/archive/ +master_sites https://download.oracle.com/java/${feature}/archive/ if {${configure.build_arch} eq "x86_64"} { distname jdk-${version}_macos-x64_bin @@ -42,7 +45,7 @@ homepage https://www.oracle.com/java/ livecheck.type regex livecheck.url https://www.oracle.com/java/technologies/downloads/ -livecheck.regex Java SE Development Kit (17\.\[0-9\.\]+) +livecheck.regex JDK Development Kit (${feature}\.\[0-9\.\]+) downloads use_configure no build {}