homebrew-core/Formula/antiword.rb

30 lines
683 B
Ruby
Raw Normal View History

require 'formula'
class Antiword <Formula
2009-11-26 06:45:17 +00:00
url 'http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz'
homepage 'http://www.winfield.demon.nl/'
md5 'f868e2a269edcbc06bf77e89a55898d1'
skip_clean 'share/antiword'
def install
inreplace "Makefile" do |s|
s.change_make_var! "GLOBAL_INSTALL_DIR", bin
s.change_make_var! "GLOBAL_RESOURCES_DIR", share+'antiword'
end
system 'make'
bin.install 'antiword'
2009-09-02 00:03:34 +00:00
man1.install 'Docs/antiword.1'
(share+'antiword').mkpath
end
def caveats; <<-EOS.undent
You can install mapping files globally to:
#{HOMEBREW_PREFIX}/share/antiword
or locally to:
~/.antiword
EOS
end
end