homebrew-core/Formula/p7zip.rb

23 lines
578 B
Ruby
Raw Normal View History

require 'formula'
2009-06-26 11:58:00 +00:00
2011-03-10 05:11:03 +00:00
class P7zip < Formula
url 'http://downloads.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2'
homepage 'http://p7zip.sourceforge.net/'
md5 'bd6caaea567dc0d995c990c5cc883c89'
def options
2012-01-01 21:48:30 +00:00
[["--32-bit", "Build 32-bit only."]]
end
2009-06-26 11:58:00 +00:00
def install
2012-01-01 21:48:30 +00:00
if Hardware.is_32_bit? or ARGV.build_32_bit?
mv 'makefile.macosx_32bits', 'makefile.machine'
else
mv 'makefile.macosx_64bits', 'makefile.machine'
end
system "make all3"
system "make", "DEST_HOME=#{prefix}", "DEST_MAN=#{man}", "install"
2009-06-26 11:58:00 +00:00
end
end