homebrew-core/Formula/languagetool.rb
Brett Koonce 36d8015450 LanguageTool 2.3
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-20 10:06:55 +01:00

20 lines
659 B
Ruby

require 'formula'
class Languagetool < Formula
homepage 'http://www.languagetool.org/'
url 'http://www.languagetool.org/download/LanguageTool-2.3.zip'
sha1 '0d1d28359bcf78ed07263d63a8e5dab35c6faf07'
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-standalone.jar', 'languagetool-gui'
end
end