This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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>
  • Loading branch information...
goodell authored and adamv committed Jan 11, 2013
1 parent bf31154 commit 00a3160d905257bf3aa837a39f9e034d0f6431e3
Showing with 11 additions and 11 deletions.
  1. +1 −0 Library/Aliases/mpich
  2. +10 −11 Library/Formula/mpich2.rb
View
View
@@ -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,18 +51,14 @@ def install
ENV.fortran
end
- # MPICH2 configure defaults to "--disable-shared"
+ # MPICH configure defaults to "--disable-shared"
if build.include? 'enable-shared'
args << "--enable-shared"
end
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

0 comments on commit 00a3160

Please sign in to comment.