diff options
| author | Adam Vandenberg | 2010-02-10 09:13:46 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-10 09:13:46 -0800 |
| commit | b8eb1339cff598a21e0e4bdaa2db11dc2e379d18 (patch) | |
| tree | 5555320abe4d801fa8763bf4576594e07257a359 /Library/Formula | |
| parent | ec358844d29dd3044a73643aa39d816dcf7143f0 (diff) | |
| download | homebrew-b8eb1339cff598a21e0e4bdaa2db11dc2e379d18.tar.bz2 | |
languagetool - make brew more idiomatic
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/languagetool.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/languagetool.rb b/Library/Formula/languagetool.rb index 0241e8a8a..5ce2185fb 100644 --- a/Library/Formula/languagetool.rb +++ b/Library/Formula/languagetool.rb @@ -1,19 +1,19 @@ require 'formula' -EXEC=<<EOS -#!/bin/bash -java -jar xxx/LanguageTool.jar $* -EOS - 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 - File.open("languagetool", 'w') {|f| f.write EXEC} - inreplace "languagetool", "xxx", "#{share}" - bin.install "languagetool" - Dir["*"].each {|f| share.install f} + (bin+"languagetool").write startup_script + libexec.install Dir["*"] end end |
