Skip to content

Commit

Permalink
Semeru: syntax adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Brousseau <[email protected]>
  • Loading branch information
AdamBrousseau committed Sep 18, 2024
1 parent bba10ab commit a039ab5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Casks/s/semeru-jdk-open.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
sha256 arm: "ec5d1b0cb5ba93a2489a04349b639779c741f70e32a3c4a40d5badff9c1d1438",
intel: "5eceb275150ba66cf50231bc98d7ab808516cff886f094b22186b1497bcd1d09"

url "https://github.com/ibmruntimes/semeru#{version.csv.first}-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",
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]},#{match[2]}" }
end
end

pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg"

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

# No zap stanza required
end
6 changes: 3 additions & 3 deletions Casks/s/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
sha256 arm: "f59899423427cc91fec67f107d69fcf1050e421998a1f5cd6a0917ead54e5dc9",
intel: "529754faa471cbbe40e36fc475dcd8e6f2179ee972ac2eb14117c1b58c119153"

url "https://github.com/ibmruntimes/semeru#{version.csv.first}-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",
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",

Check failure on line 8 in Casks/s/[email protected]

View workflow job for this annotation

GitHub Actions / test semeru-jdk-open@22 (macos-13, intel)

GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)

Check failure on line 8 in Casks/s/[email protected]

View workflow job for this annotation

GitHub Actions / test semeru-jdk-open@22 (macos-14, arm)

GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)
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]},#{match[2]}" }
end
end

pkg "ibm-semeru-open-jdk_#{arch}_mac_#{version.csv.first}_#{version.csv.second}_#{version.csv.third}.pkg"

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

# No zap stanza required
end

0 comments on commit a039ab5

Please sign in to comment.