antiword: use Homebrew's compiler setting

Additionally, fix a hard-coded path in a header file.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2011-10-30 18:19:11 -05:00
parent dd8790964e
commit b24463afd8
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ class Antiword < Formula
s.change_make_var! "GLOBAL_RESOURCES_DIR", share+'antiword'
end
system 'make'
inreplace 'antiword.h', '/usr/share/antiword', share+'antiword'
system "make CC=#{ENV.cc} LD=#{ENV.cc}"
bin.install 'antiword'
man1.install 'Docs/antiword.1'
(share+'antiword').mkpath