aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/languagetool.rb
diff options
context:
space:
mode:
authorLars Eggert2010-02-10 17:24:38 +0200
committerAdam Vandenberg2010-02-10 09:06:18 -0800
commitec358844d29dd3044a73643aa39d816dcf7143f0 (patch)
tree848bfb8877b9470f00f9ba295816c1600dc0d310 /Library/Formula/languagetool.rb
parentec93713dc3032cec3463b2e10fa2664e98dcaa63 (diff)
downloadhomebrew-ec358844d29dd3044a73643aa39d816dcf7143f0.tar.bz2
New formula: LanguageTool
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/languagetool.rb')
-rw-r--r--Library/Formula/languagetool.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/languagetool.rb b/Library/Formula/languagetool.rb
new file mode 100644
index 000000000..0241e8a8a
--- /dev/null
+++ b/Library/Formula/languagetool.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+EXEC=<<EOS
+#!/bin/bash
+java -jar xxx/LanguageTool.jar $*
+EOS
+
+class Languagetool <Formula
+ url 'http://www.languagetool.org/download/LanguageTool-1.0.0.oxt'
+ homepage 'http://www.languagetool.org/'
+ md5 '979b1a1f2ce3a9100d7aa7b1ef245734'
+
+ def install
+ File.open("languagetool", 'w') {|f| f.write EXEC}
+ inreplace "languagetool", "xxx", "#{share}"
+ bin.install "languagetool"
+ Dir["*"].each {|f| share.install f}
+ end
+end