From ec4808495bfc59758655685cc70d74bbcd48d622 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 21 Oct 2012 12:47:53 -0700 Subject: open-mpi: fix audit --- Library/Formula/open-mpi.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3