2014-07-24 23:04:59 +00:00
|
|
|
require "formula"
|
2010-10-17 00:15:37 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ClosureCompiler < Formula
|
2014-07-24 23:04:59 +00:00
|
|
|
homepage "https://github.com/google/closure-compiler"
|
2014-09-23 05:51:56 +00:00
|
|
|
url "https://github.com/google/closure-compiler/archive/maven-release-v20140814.tar.gz"
|
|
|
|
sha1 "d783183bd91e2661aa8cd1a8c35c210935e23e15"
|
2012-06-09 08:26:31 +00:00
|
|
|
|
2014-07-24 23:04:59 +00:00
|
|
|
head "https://github.com/google/closure-compiler.git"
|
2010-10-17 00:15:37 +00:00
|
|
|
|
2014-05-30 19:58:04 +00:00
|
|
|
depends_on :ant => :build
|
2013-10-28 19:44:20 +00:00
|
|
|
|
2010-10-17 00:15:37 +00:00
|
|
|
def install
|
2012-06-09 08:26:31 +00:00
|
|
|
system "ant", "clean"
|
|
|
|
system "ant"
|
|
|
|
|
2014-07-24 23:04:59 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.write_jar_script libexec/"build/compiler.jar", "closure-compiler"
|
2010-10-17 00:15:37 +00:00
|
|
|
end
|
|
|
|
end
|