2010-10-17 00:15:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ClosureCompiler < Formula
|
2010-10-17 00:15:37 +00:00
|
|
|
homepage 'http://code.google.com/p/closure-compiler/'
|
2012-03-06 15:50:05 +00:00
|
|
|
url 'http://closure-compiler.googlecode.com/files/compiler-20120305.tar.gz'
|
|
|
|
md5 '513344df6f18bfa00b17f034cabf897d'
|
2010-10-17 00:15:37 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install "compiler.jar"
|
|
|
|
(bin+'closure').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
2012-02-11 20:00:40 +00:00
|
|
|
java -jar "#{libexec}/compiler.jar" "$@"
|
2010-10-17 00:15:37 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|