aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/closure-compiler.rb
blob: f2cd5da26cc80fc8a19c3cbe496e32860f7b7150 (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-20110615.tar.gz'
  homepage 'http://code.google.com/p/closure-compiler/'
  md5 '7ba597fa67b187df23413eb0ca50f4cb'

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