diff options
| author | Adam Vandenberg | 2010-04-23 21:09:39 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-23 21:09:39 -0700 |
| commit | 15fc540ef23b2d244dd6f3807e1fb7cc541b9d19 (patch) | |
| tree | 1d02e896af48caf620ae1f5141975d82e5cfa6ad /Library/Formula | |
| parent | f6d71790230735a6948b0412ebd260293139d015 (diff) | |
| download | homebrew-15fc540ef23b2d244dd6f3807e1fb7cc541b9d19.tar.bz2 | |
Fix antiword install paths. Fixes #898.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/antiword.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/antiword.rb b/Library/Formula/antiword.rb index d0162086c..4cfc82ea8 100644 --- a/Library/Formula/antiword.rb +++ b/Library/Formula/antiword.rb @@ -5,9 +5,27 @@ class Antiword <Formula homepage 'http://www.winfield.demon.nl/' md5 'f868e2a269edcbc06bf77e89a55898d1' + def skip_clean? path + path == share+'antiword' + end + def install + inreplace "Makefile" do |s| + s.change_make_var! "GLOBAL_INSTALL_DIR", bin + s.change_make_var! "GLOBAL_RESOURCES_DIR", share+'antiword' + end + system 'make' bin.install 'antiword' man1.install 'Docs/antiword.1' + (share+'antiword').mkpath + end + + def caveats; <<-EOS.undent + You can install mapping files globally to: + #{HOMEBREW_PREFIX}/share/antiword + or locally to: + ~/.antiword + EOS end end |
