Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
antiword: style update
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Jun 11, 2013
1 parent 3171ac9 commit 8dfb78c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Library/Formula/antiword.rb
Expand Up @@ -5,20 +5,16 @@ 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}",
"CFLAGS=#{ENV.cflags} -DNDEBUG",
"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

Expand Down

0 comments on commit 8dfb78c

Please sign in to comment.