aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-21 12:47:53 -0700
committerAdam Vandenberg2012-10-21 13:24:02 -0700
commitec4808495bfc59758655685cc70d74bbcd48d622 (patch)
treec660dca7ff2b3a1e864ca666260fa2d412a3a336 /Library/Formula
parentb79dc0f1f5b0fb55ede3066eee8982bd23978dca (diff)
downloadhomebrew-ec4808495bfc59758655685cc70d74bbcd48d622.tar.bz2
open-mpi: fix audit
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/open-mpi.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb
index f0a7f6f66..3a0113862 100644
--- a/Library/Formula/open-mpi.rb
+++ b/Library/Formula/open-mpi.rb
@@ -13,12 +13,8 @@ class OpenMpi < Formula
cause 'fails make check on Lion and ML'
end
- def options
- [
- ['--disable-fortran', 'Do not build the Fortran bindings'],
- ['--test', 'Verify the build with make check']
- ]
- end
+ option 'disable-fortran', 'Do not build the Fortran bindings'
+ option 'test', 'Verify the build with make check'
def install
args = %W[
@@ -26,7 +22,7 @@ class OpenMpi < Formula
--disable-dependency-tracking
--enable-ipv6
]
- if ARGV.include? '--disable-fortran'
+ if build.include? 'disable-fortran'
args << '--disable-mpi-f77' << '--disable-mpi-f90'
else
ENV.fortran
@@ -34,7 +30,7 @@ class OpenMpi < Formula
system './configure', *args
system 'make all'
- system 'make check' if ARGV.include? '--test'
+ system 'make check' if build.include? 'test'
system 'make install'
# If Fortran bindings were built, there will be a stray `.mod` file