homebrew-core/Formula/rhino.rb
Gregory Brail 2b83cc34f4 rhino 1.7.6
Rhino 1.7.6.

Closes Homebrew/homebrew#38685.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-15 17:38:25 -07:00

16 lines
396 B
Ruby

require 'formula'
class Rhino < Formula
homepage 'https://www.mozilla.org/rhino/'
url 'https://github.com/mozilla/rhino/releases/download/Rhino1_7_6_RELEASE/rhino1.7.6.zip'
sha1 '7d86ccb422bc82569b334bad68cee385c3a4540c'
def install
libexec.install 'js.jar'
bin.write_jar_script libexec/'js.jar', 'rhino'
end
test do
system "#{bin}/rhino", '-e', 'print(42);'
end
end