aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-23 21:09:39 -0700
committerAdam Vandenberg2010-04-23 21:09:39 -0700
commit15fc540ef23b2d244dd6f3807e1fb7cc541b9d19 (patch)
tree1d02e896af48caf620ae1f5141975d82e5cfa6ad /Library
parentf6d71790230735a6948b0412ebd260293139d015 (diff)
downloadhomebrew-15fc540ef23b2d244dd6f3807e1fb7cc541b9d19.tar.bz2
Fix antiword install paths. Fixes #898.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/antiword.rb18
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