diff options
| author | Adam Vandenberg | 2013-06-11 11:29:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-11 11:29:43 -0700 |
| commit | 8dfb78c436b645f0e1d3c2ff2b7a2ce547f54774 (patch) | |
| tree | dd21971b89473757dd9697e4f93c8462d717a48e /Library/Formula | |
| parent | 3171ac96d345402ebe6e885f23d03311561a0687 (diff) | |
| download | homebrew-8dfb78c436b645f0e1d3c2ff2b7a2ce547f54774.tar.bz2 | |
antiword: style update
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/antiword.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Formula/antiword.rb b/Library/Formula/antiword.rb index bba6a9d3a..98f340ae4 100644 --- a/Library/Formula/antiword.rb +++ b/Library/Formula/antiword.rb @@ -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 |
