antiword: style update

This commit is contained in:
Adam Vandenberg 2013-06-11 11:29:43 -07:00
parent 3cdde100ff
commit 346eb34f32

View file

@ -5,11 +5,8 @@ class Antiword < Formula
url 'http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz'
sha1 '4364f7f99cb2d37f7d1d5bc14a335ccc0c67292e'
skip_clean 'share/antiword'
def install
(share+'antiword').mkpath
inreplace 'antiword.h', '/usr/share/antiword', share+'antiword'
inreplace 'antiword.h', '/usr/share/antiword', "#{share}/antiword"
system "make", "CC=#{ENV.cc}",
"LD=#{ENV.cc}",
@ -17,8 +14,7 @@ class Antiword < Formula
"GLOBAL_INSTALL_DIR=#{bin}",
"GLOBAL_RESOURCES_DIR=#{share}/antiword"
bin.install 'antiword'
# Resources directory has to be copied
cp_r "Resources/.", "#{share}/antiword"
(share+'antiword').install Dir["Resources/*"]
man1.install 'Docs/antiword.1'
end