04f6916972
- Use now the standalone languagetool package - Add additional languagetool-server and languagetool-gui exec scripts Closes Homebrew/homebrew#19328. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
20 lines
659 B
Ruby
20 lines
659 B
Ruby
require 'formula'
|
|
|
|
class Languagetool < Formula
|
|
homepage 'http://www.languagetool.org/'
|
|
url 'http://www.languagetool.org/download/LanguageTool-2.1.zip'
|
|
sha1 'a9ce558e42710dfd97a43928e0917dec4cab8762'
|
|
|
|
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
|