Skip to content

Commit

Permalink
Merge pull request Homebrew#203198 from Homebrew/rhino-1.8.0
Browse files Browse the repository at this point in the history
rhino 1.8.0
  • Loading branch information
BrewTestBot authored Jan 5, 2025
2 parents b441e3f + b40be27 commit dbcac69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2677,6 +2677,7 @@ revive
rex
rgbds
rhash
rhino
rhit
riemann
riemann-client
Expand Down
21 changes: 8 additions & 13 deletions Formula/r/rhino.rb
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
class Rhino < Formula
desc "JavaScript engine"
homepage "https://mozilla.github.io/rhino/"
url "https://github.com/mozilla/rhino/releases/download/Rhino1_7_15_Release/rhino-1.7.15.zip"
sha256 "42fce6baf1bf789b62bf938b8e8ec18a1ac92c989dd6e7221e9531454cbd97fa"
url "https://repo.maven.apache.org/maven2/org/mozilla/rhino-all/1.8.0/rhino-all-1.8.0.jar"
sha256 "a67bc8555c36236fc7eac7042f4083d7cb9eba239a2ed06f68d07af885ada33c"
license "MPL-2.0"

livecheck do
url :stable
regex(/^(?:Rhino[._-]?)v?(\d+(?:[._]\d+)+)[._-]Release$/i)
strategy :git do |tags, regex|
tags.map { |tag| tag[regex, 1]&.tr("_", ".") }
end
url "https://search.maven.org/remotecontent?filepath=org/mozilla/rhino/maven-metadata.xml"
regex(%r{<version>v?(\d+(?:\.\d+)+)</version>}i)
end

bottle do
sha256 cellar: :any_skip_relocation, all: "50d816e647a67bc75f5baa56dfa4609f14d01b1622eee1f4926f12f45ddf476e"
sha256 cellar: :any_skip_relocation, all: "88bec579e89f74a217422bbaeffa61ad5e85125583cb9722f51e42509ccdad12"
end

depends_on "openjdk@11"
depends_on "openjdk@21"

conflicts_with "nut", because: "both install `rhino` binaries"

def install
rhino_jar = "rhino-#{version}.jar"
libexec.install "lib/#{rhino_jar}"
bin.write_jar_script libexec/rhino_jar, "rhino", java_version: "11"
doc.install Dir["docs/*"]
libexec.install "rhino-all-#{version}.jar" => "rhino.jar"
bin.write_jar_script libexec/"rhino.jar", "rhino", java_version: "21"
end

test do
Expand Down

0 comments on commit dbcac69

Please sign in to comment.