diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/p7zip.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Formula/p7zip.rb b/Library/Formula/p7zip.rb index 8f7874521..f0e423196 100644 --- a/Library/Formula/p7zip.rb +++ b/Library/Formula/p7zip.rb @@ -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 |
