homebrew-core/Formula/closure-compiler.rb

20 lines
514 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
homepage 'https://github.com/google/closure-compiler'
url 'https://github.com/google/closure-compiler/archive/closure-compiler-maven-v20140407.tar.gz'
sha1 '80eba20da24f2d7b9f9f45d97ca49deb2668ef03'
head 'https://github.com/google/closure-compiler.git'
2010-10-17 00:15:37 +00:00
depends_on :ant => :build
2010-10-17 00:15:37 +00:00
def install
system "ant", "clean"
system "ant"
libexec.install Dir['*']
2012-08-07 18:20:52 +00:00
bin.write_jar_script libexec/'build/compiler.jar', 'closure-compiler'
2010-10-17 00:15:37 +00:00
end
end