homebrew-core/Formula/closure-compiler.rb

19 lines
500 B
Ruby
Raw Normal View History

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/'
# Use an SVN download to get the externals as well
url 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => '2180'
version '20120917'
head 'svn+http://closure-compiler.googlecode.com/svn/trunk/'
2010-10-17 00:15:37 +00:00
def install
system "ant", "clean"
system "ant"
libexec.install Dir['*']
2012-08-07 18:20:52 +00:00
bin.write_jar_script libexec/'build/compiler.jar', 'closure-compiler'
2010-10-17 00:15:37 +00:00
end
end