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