Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semeru-jdk-open 23+37 #185890

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Casks/s/semeru-jdk-open.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
cask "semeru-jdk-open" do
arch arm: "aarch64", intel: "x64"

version "22.0.2+9,openj9-0.46.1"
sha256 arm: "f59899423427cc91fec67f107d69fcf1050e421998a1f5cd6a0917ead54e5dc9",
intel: "529754faa471cbbe40e36fc475dcd8e6f2179ee972ac2eb14117c1b58c119153"
version "23,37,openj9-0.47.0"
sha256 arm: "ec5d1b0cb5ba93a2489a04349b639779c741f70e32a3c4a40d5badff9c1d1438",
intel: "5eceb275150ba66cf50231bc98d7ab808516cff886f094b22186b1497bcd1d09"

url "https://github.com/ibmruntimes/semeru#{version.major}-binaries/releases/download/jdk-#{version.csv.first}_#{version.csv.second}/ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg",
url "https://github.com/ibmruntimes/semeru#{version.major}-binaries/releases/download/jdk-#{version.csv.first}%2B#{version.csv.second}_#{version.csv.third}/ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg",
verified: "github.com/ibmruntimes/"
name "IBM Semeru Runtime (JDK) Open Edition"
desc "Production-ready JDK with the OpenJDK class libraries and the Eclipse OpenJ9 JVM"
homepage "https://developer.ibm.com/languages/java/semeru-runtimes"

livecheck do
url :url
regex(/^jdk[._-](\d+(?:[.+]\d+)*)[._-](.+?)$/i)
regex(/^jdk[._-](\d+[\.\d+]*)[+](\d+)[._-](.+?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]},#{match[2]}" }
end
end

pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first.tr("+", "_")}_#{version.csv.second}.pkg"
pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg"

uninstall pkgutil: "net.ibm-semeru-open.#{version.major}.jdk"

Expand Down
Loading