diff options
| author | Jack Nagel | 2012-08-12 19:01:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 19:01:59 -0500 |
| commit | d1cbb00904caf648532fdca2e857c295aa73b6b9 (patch) | |
| tree | 1d2fdc21da49cb9220e6467c84322acdc15e6acb /Library | |
| parent | b826defd36ec26489a7db3465884bf0ac0e387b6 (diff) | |
| download | homebrew-d1cbb00904caf648532fdca2e857c295aa73b6b9.tar.bz2 | |
gmp: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gmp.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb index d710591a2..617e97040 100644 --- a/Library/Formula/gmp.rb +++ b/Library/Formula/gmp.rb @@ -6,12 +6,8 @@ class Gmp < Formula mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2' sha256 '1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9' - def options - [ - ["--32-bit", "Build 32-bit only."], - ["--skip-check", "Do not run 'make check' to verify libraries."] - ] - end + option '32-bit' + option 'skip-check', 'Do not run `make check`' def install # Reports of problems using gcc 4.0 on Leopard @@ -25,7 +21,7 @@ class Gmp < Formula # Build 32-bit where appropriate, and help configure find 64-bit CPUs # see: http://gmplib.org/macos.html - 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 @@ -37,7 +33,7 @@ class Gmp < Formula system "make" ENV.j1 # Doesn't install in parallel on 8-core Mac Pro # Upstream implores users to always run the test suite - system "make check" unless ARGV.include? "--skip-check" + system "make check" unless build.include? "skip-check" system "make install" end end |
