homebrew-core/Formula/closure-compiler.rb
oncletom ba23fc2f8a closure-compiler: use SVN to get externals
Closes Homebrew/homebrew#12688.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-12 07:11:27 -07:00

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 => '1918'
version '20120430'
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