2010-02-10 15:24:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Languagetool < Formula
|
2011-04-26 12:27:32 +00:00
|
|
|
url 'http://www.languagetool.org/download/LanguageTool-1.3.1.oxt'
|
2010-02-10 15:24:38 +00:00
|
|
|
homepage 'http://www.languagetool.org/'
|
2011-04-26 12:27:32 +00:00
|
|
|
md5 '9bf13c617eba946fd6b44562cbc90d42'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
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
|