Fix fortran flag in MPICH

MPICH changed the way the fortran flag works. Instead of using --disable-fc
and --disable-f77, it now just has one --disable-fortran. This patch updates
the formula to follow that convention.

Closes Homebrew/homebrew#30572.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Wesley Bland 2014-06-30 14:32:06 -05:00 committed by Jack Nagel
parent ef2508c8dc
commit dc8e958cb7
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ class Mpich2 < Formula
"--prefix=#{prefix}",
"--mandir=#{man}"
]
if build.include? 'disable-fortran'
args << "--disable-f77" << "--disable-fc"
end
args << "--disable-fortran" if build.include? "disable-fortran"
# MPICH configure up to version 3.0.4 defaults to "--disable-shared"
if build.include? 'disable-shared'