blob: e582632c37fe7785fd7f97ad453bbf577bcdacd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|