aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-13 09:35:59 -0500
committerJack Nagel2012-08-13 09:35:59 -0500
commitdf75ac61e03fb6c7e48407fa4ffe6a44bc0f4961 (patch)
treefd19370efa6dc5053458214625d9310511172e4c /Library
parentc57802ee7d0f7a72612ffce22f672f7ef208967c (diff)
downloadhomebrew-df75ac61e03fb6c7e48407fa4ffe6a44bc0f4961.tar.bz2
p7zip: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/p7zip.rb6
1 files changed, 2 insertions, 4 deletions
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'