2010-10-17 00:15:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ClosureCompiler < Formula
|
2010-10-17 00:15:37 +00:00
|
|
|
homepage 'http://code.google.com/p/closure-compiler/'
|
2012-06-09 19:29:25 +00:00
|
|
|
# Use an SVN download to get the externals as well
|
2012-07-17 16:09:49 +00:00
|
|
|
url 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => '2079'
|
|
|
|
version '20120710'
|
2012-06-09 08:26:31 +00:00
|
|
|
|
2012-06-09 19:29:25 +00:00
|
|
|
head 'svn+http://closure-compiler.googlecode.com/svn/trunk/'
|
2010-10-17 00:15:37 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-09 08:26:31 +00:00
|
|
|
system "ant", "clean"
|
|
|
|
system "ant"
|
|
|
|
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
2012-06-09 19:29:25 +00:00
|
|
|
(bin/'closure-compiler').write <<-EOS.undent
|
2010-10-17 00:15:37 +00:00
|
|
|
#!/bin/bash
|
2012-06-09 08:26:31 +00:00
|
|
|
java -jar "#{libexec}/build/compiler.jar" "$@"
|
2010-10-17 00:15:37 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|