antiword: audit fixes

Closes Homebrew/homebrew#48180.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Tomasz Pajor 2016-01-17 15:47:56 +01:00 committed by Dominyk Tiller
parent fa70ab7046
commit 5ff2e3357b

View file

@ -10,15 +10,15 @@ class Antiword < Formula
end
def install
inreplace "antiword.h", "/usr/share/antiword", "#{share}/antiword"
inreplace "antiword.h", "/usr/share/antiword", pkgshare
system "make", "CC=#{ENV.cc}",
"LD=#{ENV.cc}",
"CFLAGS=#{ENV.cflags} -DNDEBUG",
"GLOBAL_INSTALL_DIR=#{bin}",
"GLOBAL_RESOURCES_DIR=#{share}/antiword"
"GLOBAL_RESOURCES_DIR=#{pkgshare}"
bin.install "antiword"
(share/"antiword").install Dir["Resources/*"]
pkgshare.install Dir["Resources/*"]
man1.install "Docs/antiword.1"
end