aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/languagetool.rb
blob: a33f6cdb55b2af0427ca6e688bacd9b793e95f56 (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.2.oxt'
  homepage 'http://www.languagetool.org/'
  md5 'f13ea47708968b2eb484f84623dd74e4'

  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