From 0a6af9c74de7c4e0f0800835c27f679ebb48d123 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 19:02:55 -0500 Subject: [PATCH] mpfr: use options DSL Signed-off-by: Jack Nagel --- Formula/mpfr.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/mpfr.rb b/Formula/mpfr.rb index a2d1804436..2a3f96af26 100644 --- a/Formula/mpfr.rb +++ b/Formula/mpfr.rb @@ -7,16 +7,14 @@ class Mpfr < Formula depends_on 'gmp' - def options - [["--32-bit", "Build 32-bit only."]] - end + option '32-bit' def install args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] # Build 32-bit where appropriate, and help configure find 64-bit CPUs # Note: This logic should match what the GMP formula does. - if MacOS.prefer_64_bit? and not ARGV.build_32_bit? + if MacOS.prefer_64_bit? and not build.build_32_bit? ENV.m64 args << "--build=x86_64-apple-darwin" else