homebrew-core/Formula/p7zip.rb
Jack Nagel 98782a103a p7zip: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:35:59 -05:00

20 lines
597 B
Ruby

require 'formula'
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'
option '32-bit'
def install
if Hardware.is_32_bit? or build.build_32_bit?
mv 'makefile.macosx_32bits', 'makefile.machine'
else
mv 'makefile.macosx_64bits', 'makefile.machine'
end
system "make", "all3", "CC=#{ENV.cc} $(ALLFLAGS)", "CXX=#{ENV.cxx} $(ALLFLAGS)"
system "make", "DEST_HOME=#{prefix}", "DEST_MAN=#{man}", "install"
end
end