homebrew-core/Formula/closure-compiler.rb

16 lines
395 B
Ruby
Raw Normal View History

2010-10-17 00:15:37 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
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