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