homebrew-core/Formula/closure-compiler.rb
2012-02-11 15:20:53 -08:00

15 lines
399 B
Ruby

require 'formula'
class ClosureCompiler < Formula
url 'http://closure-compiler.googlecode.com/files/compiler-20110615.tar.gz'
homepage 'http://code.google.com/p/closure-compiler/'
md5 '7ba597fa67b187df23413eb0ca50f4cb'
def install
libexec.install "compiler.jar"
(bin+'closure').write <<-EOS.undent
#!/bin/bash
java -jar "#{libexec}/compiler.jar" "$@"
EOS
end
end