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: migrate casks #172768

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
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
27 changes: 27 additions & 0 deletions Casks/s/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cask "semeru-jdk-open@11" do
arch arm: "aarch64", intel: "x64"

version "11.0.22+7,openj9-0.43.0"
sha256 arm: "57cf3015d5c45aed38fd70095cd5b28e70667c8847462faa96a620b70fdf2f5a",
intel: "dba721b2c1e274a8d2a696e1590d9a0ff735488fdc057c98911b12df408c5abd"

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",
verified: "github.com/ibmruntimes/semeru#{version.major}-binaries/"
name "IBM Semeru Runtime (JDK 11) 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 :stable
regex(/^jdk[._-](\d+(?:[.+]\d+)*)[._-](.+?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
end
end

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

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

# No zap stanza required
end
27 changes: 27 additions & 0 deletions Casks/s/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cask "semeru-jdk-open@17" do
arch arm: "aarch64", intel: "x64"

version "17.0.10+7,openj9-0.43.0"
sha256 arm: "487806ddf6b36391d18040e3a5f83f33e2f1497d39bbe623458a18906770caf9",
intel: "96f6ae58eb3b76eb7fd0c3a9b63d94bbad5a895ebbc096ca1c2440b2177ce23c"

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",
verified: "github.com/ibmruntimes/semeru#{version.major}-binaries/"
name "IBM Semeru Runtime (JDK 17) 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 :stable
regex(/^jdk[._-](\d+(?:[.+]\d+)*)[._-](.+?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
end
end

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

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

# No zap stanza required
end
24 changes: 24 additions & 0 deletions Casks/s/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cask "semeru-jdk-open@8" do
version "8u402-b06,openj9-0.43.0"
sha256 "accf5cb3f4d67a0afdd59f3cd295b78b0cb1ad869db3079c3777c04943b1cbbf"

url "https://github.com/ibmruntimes/semeru8-binaries/releases/download/jdk#{version.csv.first}_#{version.csv.second}/ibm-semeru-open-jdk_x64_mac_#{version.csv.first.tr("-", "")}_#{version.csv.second}.pkg",
verified: "github.com/ibmruntimes/semeru8-binaries/"
name "IBM Semeru Runtime (JDK 8) 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 :stable
regex(/^(?:jdk)?(\d+u\d+)[._-](b\d+)[._-](.+?)$/i)
strategy :github_latest do |json, regex|
json["tag_name"]&.scan(regex)&.map { |match| "#{match[0]}-#{match[1]},#{match[2]}" }
end
end

pkg "ibm-semeru-open-jdk_x64_mac_#{version.csv.first.tr("-", "")}_#{version.csv.second}.pkg"

uninstall pkgutil: "net.ibm-semeru-open.8.jdk"

# No zap stanza required
end
Loading