homebrew-core/Formula/rhino.rb
Brett Koonce 052eb0f82b rhino 1.7R4
Closes Homebrew/homebrew#13727.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-29 10:46:15 -07:00

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