homebrew-core/Formula/closure-compiler.rb

16 lines
394 B
Ruby
Raw Normal View History

2010-10-17 00:15:37 +00:00
require 'formula'
class ClosureCompiler <Formula
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/'
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