homebrew-core/Formula/closure-compiler.rb
2014-11-02 15:33:13 +00:00

27 lines
769 B
Ruby

require "formula"
class ClosureCompiler < Formula
homepage "https://github.com/google/closure-compiler"
url "https://github.com/google/closure-compiler/archive/maven-release-v20141023.tar.gz"
sha1 "4551a74f0ccfd7e1de325d495b5f71f71a3b24c8"
head "https://github.com/google/closure-compiler.git"
bottle do
cellar :any
sha1 "4948b02aa41ae8979325f759116750a72b14feff" => :yosemite
sha1 "2d99973cfa238d61b2beab10005494b5b61b73ca" => :mavericks
sha1 "68df5948864090eab5b2f221b2d6f7fea3e9e3b8" => :mountain_lion
end
depends_on :ant => :build
depends_on :java => "1.7"
def install
system "ant", "clean"
system "ant"
libexec.install Dir["*"]
bin.write_jar_script libexec/"build/compiler.jar", "closure-compiler"
end
end