Skip to content

Commit

Permalink
Merge pull request #172768 from Homebrew/migrate-semeru
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored May 2, 2024
2 parents 6e42fae + b3995e9 commit e3df458
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
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

0 comments on commit e3df458

Please sign in to comment.