diff options
| author | Dave Goodell | 2013-01-11 16:10:36 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2013-03-15 08:19:51 -0700 |
| commit | 00a3160d905257bf3aa837a39f9e034d0f6431e3 (patch) | |
| tree | 0a17354a14f38ae49460a16c236cc7ea3ac89014 /Library/Formula/mpich2.rb | |
| parent | bf31154f700a73c5c14b96edf447e75964e9390d (diff) | |
| download | homebrew-00a3160d905257bf3aa837a39f9e034d0f6431e3.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula/mpich2.rb')
| -rw-r--r-- | Library/Formula/mpich2.rb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb index 00a69d72e..363d01f3b 100644 --- a/Library/Formula/mpich2.rb +++ b/Library/Formula/mpich2.rb @@ -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 |
