diff options
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 |
