e5e78fbf69
Closes Homebrew/homebrew#13449. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
22 lines
555 B
Ruby
22 lines
555 B
Ruby
require 'formula'
|
|
|
|
class ClosureCompiler < Formula
|
|
homepage 'http://code.google.com/p/closure-compiler/'
|
|
# Use an SVN download to get the externals as well
|
|
url 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => '2079'
|
|
version '20120710'
|
|
|
|
head 'svn+http://closure-compiler.googlecode.com/svn/trunk/'
|
|
|
|
def install
|
|
system "ant", "clean"
|
|
system "ant"
|
|
|
|
libexec.install Dir['*']
|
|
|
|
(bin/'closure-compiler').write <<-EOS.undent
|
|
#!/bin/bash
|
|
java -jar "#{libexec}/build/compiler.jar" "$@"
|
|
EOS
|
|
end
|
|
end
|