Skip to content

Commit

Permalink
p7zip: now install all executables and manpages
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
tianyicui authored and adamv committed Sep 28, 2010
1 parent 7a7a1ef commit 2bfcc07
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Library/Formula/p7zip.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'formula'

def build_32bit?; ARGV.include? '--32-bit' or Hardware.is_32_bit?; end

class P7zip <Formula
url 'http:https://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2'
homepage 'http:https://p7zip.sourceforge.net/'
Expand All @@ -9,21 +11,14 @@ def options
[["--32-bit", "Force 32-bit."]]
end

def build_32bit?
ARGV.include? '--32-bit' or Hardware.is_32_bit?
end

def install
if build_32bit?
mv 'makefile.macosx_32bits', 'makefile.machine'
else
mv 'makefile.macosx_64bits', 'makefile.machine'
end

mv 'DOCS/copying.txt', 'COPYING'
system "make"
# we do our own install because theirs sucks
bin.install 'bin/7za'
man.install 'man1'
system "make all3"
system "make", "DEST_HOME=#{prefix}", "DEST_MAN=#{man}", "install"
end
end

0 comments on commit 2bfcc07

Please sign in to comment.