diff options
Diffstat (limited to 'Library/Formula/mpich2.rb')
| -rw-r--r-- | Library/Formula/mpich2.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb index 5179ba40e..038898863 100644 --- a/Library/Formula/mpich2.rb +++ b/Library/Formula/mpich2.rb @@ -9,6 +9,9 @@ class Mpich2 < Formula head 'git://git.mpich.org/mpich.git' + option 'disable-fortran', "Do not attempt to build Fortran bindings" + option 'enable-shared', "Build shared libraries" + # the HEAD version requires the autotools to be installed # (autoconf>=2.67, automake>=1.12.3, libtool>=2.4) if build.head? @@ -16,8 +19,7 @@ class Mpich2 < Formula depends_on 'libtool' => :build end - option 'disable-fortran', "Do not attempt to build Fortran bindings" - option 'enable-shared', "Build shared libraries" + depends_on :fortran unless build.include? 'disable-fortran' conflicts_with 'open-mpi', :because => 'both install mpi__ compiler wrappers' @@ -49,8 +51,6 @@ class Mpich2 < Formula ] if build.include? 'disable-fortran' args << "--disable-f77" << "--disable-fc" - else - ENV.fortran end # MPICH configure defaults to "--disable-shared" |
