Skip to content

Commit

Permalink
open-mpi 1.7.3
Browse files Browse the repository at this point in the history
* Migrate 1.7 from devel to the default.

Closes Homebrew/legacy-homebrew#23467.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
manphiz authored and MikeMcQuaid committed Oct 23, 2013
1 parent b9d4821 commit 13120b5
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions Formula/open-mpi.rb
Expand Up @@ -2,34 +2,21 @@

class OpenMpi < Formula
homepage 'http://www.open-mpi.org/'
url 'http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2'
sha1 '93859d515b33dd9a0ee6081db285a2d1dffe21ce'

devel do
url 'http://www.open-mpi.org/software/ompi/v1.7/downloads/openmpi-1.7.2.tar.bz2'
sha1 '89676c1171784b1c26e1598caf88e87f897f6653'
end
url 'http://www.open-mpi.org/software/ompi/v1.7/downloads/openmpi-1.7.3.tar.bz2'
sha1 'ce61ee466ac2b21024c7d8dabc4f18676b2f1b76'

option 'disable-fortran', 'Do not build the Fortran bindings'
option 'test', 'Verify the build with make check'
option 'enable-mpi-thread-multiple', 'Enable MPI_THREAD_MULTIPLE'

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
fails_with :clang do
build 425
cause 'fails make check on Lion and ML'
end if not build.devel?

def install
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--disable-silent-rules
--enable-ipv6
]
if build.include? 'disable-fortran'
Expand All @@ -41,9 +28,9 @@ def install
end

system './configure', *args
system 'make V=1 all'
system 'make V=1 check' if build.include? 'test'
system 'make install'
system 'make', 'all'
system 'make', 'check'
system 'make', 'install'

# If Fortran bindings were built, there will be a stray `.mod` file
# (Fortran header) in `lib` that needs to be moved to `include`.
Expand Down

0 comments on commit 13120b5

Please sign in to comment.