From 8dfb78c436b645f0e1d3c2ff2b7a2ce547f54774 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 11 Jun 2013 11:29:43 -0700 Subject: antiword: style update --- Library/Formula/antiword.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3