homebrew-core/Formula/closure-compiler.rb

22 lines
521 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/'
#url 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => '1918'
version 'r1918'
head 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => '1918'
2010-10-17 00:15:37 +00:00
def install
system "ant", "clean"
system "ant"
libexec.install Dir['*']
(bin+'closure-compiler').write <<-EOS.undent
2010-10-17 00:15:37 +00:00
#!/bin/bash
java -jar "#{libexec}/build/compiler.jar" "$@"
2010-10-17 00:15:37 +00:00
EOS
end
end