p7zip: now install all executables and manpages

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Tianyi Cui authored and Adam Vandenberg committed 2010-09-28 11:31:30 -07:00
1 parent 7a7a1ef067
commit 2bfcc071ac
1 file changed
+4 -9
+4 -9
View File
@@ -1,5 +1,7 @@
require 'formula'
def build_32bit?; ARGV.include? '--32-bit' or Hardware.is_32_bit?; end
class P7zip <Formula
url 'http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2'
homepage 'http://p7zip.sourceforge.net/'
@@ -9,10 +11,6 @@ class P7zip <Formula
[["--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'
@@ -20,10 +18,7 @@ class P7zip <Formula
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