aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/closure-compiler.rb
blob: 9fe0edd73a33d5ce4d2530ebcc9e0832aaa3ef63 (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-20120430.tar.gz'
  sha1 '8adabd3a4307a4168cb050cdcc588e82060d15d3'

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