From 3ea7a1da1cd687568c6f47e38f7985ffc7006081 Mon Sep 17 00:00:00 2001 From: Alexei Date: Sat, 25 Jun 2011 12:34:52 -0400 Subject: [PATCH] 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 --- Formula/rhino.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/rhino.rb diff --git a/Formula/rhino.rb b/Formula/rhino.rb new file mode 100644 index 0000000000..887883852e --- /dev/null +++ b/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