diff options
| author | Tianyi Cui | 2010-09-25 02:01:31 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-28 11:31:30 -0700 |
| commit | 2bfcc071acb97d04cb4c34f7e48fa039cd7ea615 (patch) | |
| tree | c15bf6d1aeb679d838c090133656fc68126fb417 /Library/Formula | |
| parent | 7a7a1ef067a8e25f0f10f7d4b8c4eea2011a1c04 (diff) | |
| download | homebrew-2bfcc071acb97d04cb4c34f7e48fa039cd7ea615.tar.bz2 | |
p7zip: now install all executables and manpages
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -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 |
