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

class ClosureCompiler <Formula
  url 'http://closure-compiler.googlecode.com/files/compiler-20100917.tar.gz'
  homepage 'http://code.google.com/p/closure-compiler/'
  md5 '581e7d667103d8bee08ff8adf7e39e56'

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