2010-10-17 00:15:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ClosureCompiler < Formula
|
2010-10-17 00:15:37 +00:00
|
|
|
homepage 'http://code.google.com/p/closure-compiler/'
|
2014-03-25 17:50:33 +00:00
|
|
|
url 'https://code.google.com/p/closure-compiler/', :using => :git, :tag => 'v20140303'
|
2012-06-09 08:26:31 +00:00
|
|
|
|
2013-03-07 03:26:46 +00:00
|
|
|
head 'https://code.google.com/p/closure-compiler/', :using => :git
|
2010-10-17 00:15:37 +00:00
|
|
|
|
2013-10-28 19:44:20 +00:00
|
|
|
depends_on :ant
|
|
|
|
|
2010-10-17 00:15:37 +00:00
|
|
|
def install
|
2012-06-09 08:26:31 +00:00
|
|
|
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
|