From df75ac61e03fb6c7e48407fa4ffe6a44bc0f4961 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 13 Aug 2012 09:35:59 -0500 Subject: p7zip: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/p7zip.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/p7zip.rb b/Library/Formula/p7zip.rb index 05e2171ef..30d886d2d 100644 --- a/Library/Formula/p7zip.rb +++ b/Library/Formula/p7zip.rb @@ -5,12 +5,10 @@ class P7zip < Formula homepage 'http://p7zip.sourceforge.net/' md5 'bd6caaea567dc0d995c990c5cc883c89' - def options - [["--32-bit", "Build 32-bit only."]] - end + option '32-bit' def install - if Hardware.is_32_bit? or ARGV.build_32_bit? + if Hardware.is_32_bit? or build.build_32_bit? mv 'makefile.macosx_32bits', 'makefile.machine' else mv 'makefile.macosx_64bits', 'makefile.machine' -- cgit v1.2.3