diff options
| author | Alexei | 2011-06-25 12:34:52 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-28 08:07:04 -0700 |
| commit | d6df9399a0e75e12a31a1105bfcc8191a6a29728 (patch) | |
| tree | de4dd74ce8ba266d80216c6cac88767d9ecfde5c /Library/Formula | |
| parent | 9e65ed07e5b4570a05474acee9cad7be0819b988 (diff) | |
| download | homebrew-d6df9399a0e75e12a31a1105bfcc8191a6a29728.tar.bz2 | |
Rhino 1.7R3
Rhino is an open-source implementation of JavaScript written entirely in
Java. It is typically embedded into Java applications to provide
scripting to end users.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/rhino.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/rhino.rb b/Library/Formula/rhino.rb new file mode 100644 index 000000000..887883852 --- /dev/null +++ b/Library/Formula/rhino.rb @@ -0,0 +1,16 @@ +require 'formula' + +class Rhino < Formula + url 'ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip' + homepage 'http://www.mozilla.org/rhino/' + md5 '99d94103662a8d0b571e247a77432ac5' + version '1.7R3' + + def install + libexec.install 'js.jar' + (bin+'rhino').write <<-EOS.undent + #!/bin/sh + java -jar "#{libexec}/js.jar" $@ + EOS + end +end |
