antiword: audit fixes
Closes Homebrew/homebrew#48180. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
fa70ab7046
commit
5ff2e3357b
1 changed files with 3 additions and 3 deletions
|
@ -10,15 +10,15 @@ class Antiword < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
inreplace "antiword.h", "/usr/share/antiword", "#{share}/antiword"
|
inreplace "antiword.h", "/usr/share/antiword", pkgshare
|
||||||
|
|
||||||
system "make", "CC=#{ENV.cc}",
|
system "make", "CC=#{ENV.cc}",
|
||||||
"LD=#{ENV.cc}",
|
"LD=#{ENV.cc}",
|
||||||
"CFLAGS=#{ENV.cflags} -DNDEBUG",
|
"CFLAGS=#{ENV.cflags} -DNDEBUG",
|
||||||
"GLOBAL_INSTALL_DIR=#{bin}",
|
"GLOBAL_INSTALL_DIR=#{bin}",
|
||||||
"GLOBAL_RESOURCES_DIR=#{share}/antiword"
|
"GLOBAL_RESOURCES_DIR=#{pkgshare}"
|
||||||
bin.install "antiword"
|
bin.install "antiword"
|
||||||
(share/"antiword").install Dir["Resources/*"]
|
pkgshare.install Dir["Resources/*"]
|
||||||
man1.install "Docs/antiword.1"
|
man1.install "Docs/antiword.1"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue