From 6ef5eeead16319d2aa85f7a83f4ffff13913845a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 13 Aug 2012 10:41:46 -0500 Subject: [PATCH] mongodb: use options DSL Signed-off-by: Jack Nagel --- Formula/mongodb.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Formula/mongodb.rb b/Formula/mongodb.rb index 913d6934ca1..43efcfc91d3 100644 --- a/Formula/mongodb.rb +++ b/Formula/mongodb.rb @@ -3,7 +3,7 @@ require 'formula' class Mongodb < Formula homepage 'http://www.mongodb.org/' - if Hardware.is_64_bit? and not ARGV.build_32_bit? + if Hardware.is_64_bit? and not build.build_32_bit? url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.7.tgz' md5 '81b0e8be3206cc60e8031dde302fb983' version '2.0.7-x86_64' @@ -25,11 +25,9 @@ class Mongodb < Formula end end - skip_clean :all + option '32-bit' - def options - [['--32-bit', 'Build 32-bit only.']] - end + skip_clean :all def install # Copy the prebuilt binaries to prefix