aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/languagetool.rb
blob: 5ce2185fb0ace67c0a649060aaacf584533d83cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Languagetool <Formula
  url 'http://www.languagetool.org/download/LanguageTool-1.0.0.oxt'
  homepage 'http://www.languagetool.org/'
  md5 '979b1a1f2ce3a9100d7aa7b1ef245734'
  
  def startup_script
    <<-EOS
#!/bin/bash
java -jar #{libexec}/LanguageTool.jar $*
EOS
  end

  def install
    (bin+"languagetool").write startup_script
    libexec.install Dir["*"]
  end
end