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

class ClosureCompiler < Formula
  homepage 'http://code.google.com/p/closure-compiler/'
  url 'http://closure-compiler.googlecode.com/files/compiler-20120305.tar.gz'
  md5 '513344df6f18bfa00b17f034cabf897d'

  def install
    libexec.install "compiler.jar"
    (bin+'closure').write <<-EOS.undent
      #!/bin/bash
      java -jar "#{libexec}/compiler.jar" "$@"
    EOS
  end
end