diff options
| author | Jack Nagel | 2012-08-12 19:02:55 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 19:02:55 -0500 |
| commit | 921bb743d0b31eb56d2967d292551cf5eb245213 (patch) | |
| tree | fdeffe6d6b8cdff73c888b146642f51d18310c3b /Library/Formula | |
| parent | d618018b8cf2f3abcdde7f2c64502a53016bd852 (diff) | |
| download | homebrew-921bb743d0b31eb56d2967d292551cf5eb245213.tar.bz2 | |
mpfr: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpfr.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/mpfr.rb b/Library/Formula/mpfr.rb index a2d180443..2a3f96af2 100644 --- a/Library/Formula/mpfr.rb +++ b/Library/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 |
