Skip to content

Commit

Permalink
Rhino 1.7R3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ghostwords authored and adamv committed Jun 28, 2011
1 parent 9e65ed0 commit d6df939
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Library/Formula/rhino.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d6df939

Please sign in to comment.