homebrew-core/Formula/antiword.rb

31 lines
816 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Antiword < Formula
2009-11-26 06:45:17 +00:00
homepage 'http://www.winfield.demon.nl/'
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'
system "make", "CC=#{ENV.cc}",
"LD=#{ENV.cc}",
"CFLAGS=#{ENV.cflags} -DNDEBUG",
"GLOBAL_INSTALL_DIR=#{bin}",
"GLOBAL_RESOURCES_DIR=#{share}/antiword"
bin.install 'antiword'
2009-09-02 00:03:34 +00:00
man1.install 'Docs/antiword.1'
end
def caveats; <<-EOS.undent
You can install mapping files globally to:
#{HOMEBREW_PREFIX}/share/antiword
or locally to:
~/.antiword
EOS
end
end