mpfr: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
dfb16edbf4
commit
0a6af9c74d
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue