2010-02-10 15:24:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Languagetool <Formula
|
|
|
|
url 'http://www.languagetool.org/download/LanguageTool-1.0.0.oxt'
|
|
|
|
homepage 'http://www.languagetool.org/'
|
|
|
|
md5 '979b1a1f2ce3a9100d7aa7b1ef245734'
|
2010-02-10 17:13:46 +00:00
|
|
|
|
|
|
|
def startup_script
|
|
|
|
<<-EOS
|
|
|
|
#!/bin/bash
|
|
|
|
java -jar #{libexec}/LanguageTool.jar $*
|
|
|
|
EOS
|
|
|
|
end
|
2010-02-10 15:24:38 +00:00
|
|
|
|
|
|
|
def install
|
2010-02-10 17:13:46 +00:00
|
|
|
(bin+"languagetool").write startup_script
|
|
|
|
libexec.install Dir["*"]
|
2010-02-10 15:24:38 +00:00
|
|
|
end
|
|
|
|
end
|