aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/open-mpi.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-23 20:29:13 -0700
committerAdam Vandenberg2013-06-24 07:38:09 -0700
commit3813c7ca60cba0d44d3830cdd9b1d31e552e9d5c (patch)
treed0f002ed46c2fc249827768f5ec1be4a2a8167f7 /Library/Formula/open-mpi.rb
parent8806220848018668f66de312cede721437bf21c7 (diff)
downloadhomebrew-3813c7ca60cba0d44d3830cdd9b1d31e552e9d5c.tar.bz2
Use :fortran
Closes #20731. Closes #13621.
Diffstat (limited to 'Library/Formula/open-mpi.rb')
-rw-r--r--Library/Formula/open-mpi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb
index 3613ccc53..56033a467 100644
--- a/Library/Formula/open-mpi.rb
+++ b/Library/Formula/open-mpi.rb
@@ -16,6 +16,8 @@ class OpenMpi < Formula
conflicts_with 'mpich2', :because => 'both install mpi__ compiler wrappers'
+ depends_on :fortran unless build.include? 'disable-fortran'
+
# Reported upstream at version 1.6, both issues
# http://www.open-mpi.org/community/lists/devel/2012/05/11003.php
# http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
@@ -32,8 +34,6 @@ class OpenMpi < Formula
]
if build.include? 'disable-fortran'
args << '--disable-mpi-f77' << '--disable-mpi-f90'
- else
- ENV.fortran
end
if build.include? 'enable-mpi-thread-multiple'