blob: d55e37418a62f74fc9aa7b7b8e72b7f5bf09fb0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require 'formula'
class ClosureCompiler < Formula
homepage 'http://code.google.com/p/closure-compiler/'
url 'svn+http://closure-compiler.googlecode.com/svn/trunk/', :revision => 1918
version 'r1918'
url '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
|