aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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