homebrew-core/Formula/antiword.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

29 lines
683 B
Ruby

require 'formula'
class Antiword <Formula
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'
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