aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-10-16 17:15:37 -0700
committerAdam Vandenberg2010-10-16 17:15:37 -0700
commitba176cbd8e2ac1072e71be748bb7484b723a7c89 (patch)
tree2ea58f1e1afd707b5a00f2beea4d80a3a7ff615b /Library
parent4437804416915b2b7059222f10b5c8b4fe14c2d3 (diff)
downloadhomebrew-ba176cbd8e2ac1072e71be748bb7484b723a7c89.tar.bz2
Google closure-compiler for JavaScript
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/closure-compiler.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/closure-compiler.rb b/Library/Formula/closure-compiler.rb
new file mode 100644
index 000000000..93478352e
--- /dev/null
+++ b/Library/Formula/closure-compiler.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class ClosureCompiler <Formula
+ url 'http://closure-compiler.googlecode.com/files/compiler-20100917.tar.gz'
+ homepage 'http://code.google.com/p/closure-compiler/'
+ md5 '581e7d667103d8bee08ff8adf7e39e56'
+
+ def install
+ libexec.install "compiler.jar"
+ (bin+'closure').write <<-EOS.undent
+ #!/bin/bash
+ java -jar #{libexec}/compiler.jar $@
+ EOS
+ end
+end