homebrew-core/Formula/languagetool.rb
Toni Förster 81094c0462 languagetool 2.8
bumped languagetool to version 2.8

Closes Homebrew/homebrew#36734.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-11 14:18:37 +00:00

20 lines
649 B
Ruby

require 'formula'
class Languagetool < Formula
homepage 'http://www.languagetool.org/'
url 'https://www.languagetool.org/download/LanguageTool-2.8.zip'
sha1 "38b0787d9b4305aa7c71942011b7668a312ffbc1"
def server_script server_jar; <<-EOS.undent
#!/bin/bash
exec java -cp #{server_jar} org.languagetool.server.HTTPServer "$@"
EOS
end
def install
libexec.install Dir["*"]
bin.write_jar_script libexec/'languagetool-commandline.jar', 'languagetool'
(bin+'languagetool-server').write server_script(libexec/'languagetool-server.jar')
bin.write_jar_script libexec/'languagetool.jar', 'languagetool-gui'
end
end