homebrew-core/Formula/rhino.rb
2012-02-11 15:38:15 -08:00

16 lines
366 B
Ruby

require 'formula'
class Rhino < Formula
homepage 'http://www.mozilla.org/rhino/'
url 'ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip'
md5 '99d94103662a8d0b571e247a77432ac5'
version '1.7R3'
def install
libexec.install 'js.jar'
(bin+'rhino').write <<-EOS.undent
#!/bin/bash
java -jar "#{libexec}/js.jar" "$@"
EOS
end
end