aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/closure-compiler.rb
blob: 6be5fd2a7abb21aa6e27ed74ac8186ff35fca07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

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'

  depends_on :ant => :build

  def install
    system "ant", "clean"
    system "ant"

    libexec.install Dir['*']
    bin.write_jar_script libexec/'build/compiler.jar', 'closure-compiler'
  end
end