052eb0f82b
Closes Homebrew/homebrew#13727. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
377 B
Ruby
16 lines
377 B
Ruby
require 'formula'
|
|
|
|
class Rhino < Formula
|
|
homepage 'http://www.mozilla.org/rhino/'
|
|
url 'https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip'
|
|
sha1 '483e097cb575c724c745edd80c9512f073bd510a'
|
|
version '1.7R4'
|
|
|
|
def install
|
|
libexec.install 'js.jar'
|
|
(bin+'rhino').write <<-EOS.undent
|
|
#!/bin/bash
|
|
java -jar "#{libexec}/js.jar" "$@"
|
|
EOS
|
|
end
|
|
end
|