Skip to content

Commit

Permalink
jdk17: note that version 17.0.13+ is not available via MacPorts (#26260)
Browse files Browse the repository at this point in the history
  • Loading branch information
breun authored Oct 22, 2024
1 parent d80674e commit c12506d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions java/jdk17/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 {}
Expand Down

0 comments on commit c12506d

Please sign in to comment.