MPICH 3.0.2

MPICH2 recently renamed itself to MPICH and bumped the version number
from 1.5 to 3.0.  Even more recently, it switched from SVN to git for
version control.

The sbin hack is no longer needed, since MPE was removed between
MPICH2-1.5 and MPICH-3.0.

Closes #17314.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dave Goodell authored and Adam Vandenberg committed 2013-03-15 08:19:51 -07:00
1 parent bf31154f70
commit 00a3160d90
2 files changed
+11 -11

No files matched your search

+1
View File
@@ -0,0 +1 @@
../Formula/mpich2.rb
+10 -11
View File
@@ -1,11 +1,13 @@
require 'formula'
# This should really be named Mpich now, but homebrew cannot currently handle
# formula renames, see homebrew issue #14374.
class Mpich2 < Formula
homepage 'http://www.mpich.org/'
url 'http://www.mpich.org/static/tarballs/1.5/mpich2-1.5.tar.gz'
sha1 'be7448227dde5badf3d6ebc0c152b200998421e0'
url 'http://www.mpich.org/static/tarballs/3.0.2/mpich-3.0.2.tar.gz'
sha1 '510f5a05bb5c8214caa86562e054c455cb5287d1'
head 'https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk'
head 'git://git.mpich.org/mpich.git'
# the HEAD version requires the autotools to be installed
# (autoconf>=2.67, automake>=1.12.3, libtool>=2.4)
@@ -18,11 +20,12 @@ class Mpich2 < Formula
option 'enable-shared', "Build shared libraries"
# fails with clang from Xcode 4.5.1 on 10.7 and 10.8 (see #15533)
# linker bug appears to have been fixed by Xcode 4.6
fails_with :clang do
build 421
cause <<-EOS.undent
Clang generates code that causes the linker to segfault when building
MPICH2 with shared libraries. Specific message:
MPICH with shared libraries. Specific message:
collect2: ld terminated with signal 11 [Segmentation fault: 11]
EOS
@@ -31,8 +34,8 @@ class Mpich2 < Formula
def install
if build.head?
# ensure that the consistent set of autotools built by homebrew is used to
# build MPICH2, otherwise very bizarre build errors can occur
ENV['MPICH2_AUTOTOOLS_DIR'] = (HOMEBREW_PREFIX+'bin')
# build MPICH, otherwise very bizarre build errors can occur
ENV['MPICH_AUTOTOOLS_DIR'] = (HOMEBREW_PREFIX+'bin')
system "./autogen.sh"
end
@@ -48,7 +51,7 @@ class Mpich2 < Formula
ENV.fortran
end
# MPICH2 configure defaults to "--disable-shared"
# MPICH configure defaults to "--disable-shared"
if build.include? 'enable-shared'
args << "--enable-shared"
end
@@ -56,10 +59,6 @@ class Mpich2 < Formula
system "./configure", *args
system "make"
system "make install"
# MPE installs several helper scripts like "mpeuninstall" to the sbin
# directory, which we don't need when installing via homebrew
sbin.rmtree
end
def caveats; <<-EOS.undent