OpenMPI: 1.8.5.
Stylistic changes and caveats about compiler flags. Closes Homebrew/homebrew#39449. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
8e6ee4f99e
commit
937b7c71e6
1 changed files with 18 additions and 14 deletions
|
@ -1,9 +1,7 @@
|
|||
require 'formula'
|
||||
|
||||
class OpenMpi < Formula
|
||||
homepage 'http://www.open-mpi.org/'
|
||||
url 'http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.bz2'
|
||||
sha1 '88ae39850fcf0db05ac20e35dd9e4cacc75bde4d'
|
||||
homepage "http://www.open-mpi.org/"
|
||||
url "http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.5.tar.bz2"
|
||||
sha256 "4cea06a9eddfa718b09b8240d934b14ca71670c2dc6e6251a585ce948a93fbc4"
|
||||
|
||||
bottle do
|
||||
sha1 "a6ec98d40ab34bf2eb4dbe9223d5aa430ba749ed" => :yosemite
|
||||
|
@ -17,11 +15,11 @@ class OpenMpi < Formula
|
|||
option "with-mpi-thread-multiple", "Enable MPI_THREAD_MULTIPLE"
|
||||
option :cxx11
|
||||
|
||||
conflicts_with 'mpich2', :because => 'both install mpi__ compiler wrappers'
|
||||
conflicts_with 'lcdf-typetools', :because => 'both install same set of binaries.'
|
||||
conflicts_with "mpich2", :because => "both install mpi__ compiler wrappers"
|
||||
conflicts_with "lcdf-typetools", :because => "both install same set of binaries."
|
||||
|
||||
depends_on :fortran => :recommended
|
||||
depends_on 'libevent'
|
||||
depends_on "libevent"
|
||||
|
||||
def install
|
||||
ENV.cxx11 if build.cxx11?
|
||||
|
@ -36,18 +34,24 @@ class OpenMpi < Formula
|
|||
args << "--disable-mpi-fortran" if build.without? "fortran"
|
||||
args << "--enable-mpi-thread-multiple" if build.with? "mpi-thread-multiple"
|
||||
|
||||
system './configure', *args
|
||||
system 'make', 'all'
|
||||
system 'make', 'check'
|
||||
system 'make', 'install'
|
||||
system "./configure", *args
|
||||
system "make", "all"
|
||||
system "make", "check"
|
||||
system "make", "install"
|
||||
|
||||
# If Fortran bindings were built, there will be stray `.mod` files
|
||||
# (Fortran header) in `lib` that need to be moved to `include`.
|
||||
include.install Dir["#{lib}/*.mod"]
|
||||
|
||||
# Move vtsetup.jar from bin to libexec.
|
||||
libexec.install bin/'vtsetup.jar'
|
||||
inreplace bin/'vtsetup', '$bindir/vtsetup.jar', '$prefix/libexec/vtsetup.jar'
|
||||
libexec.install bin/"vtsetup.jar"
|
||||
inreplace bin/"vtsetup", "$bindir/vtsetup.jar", "$prefix/libexec/vtsetup.jar"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
WARNING: Open MPI now ignores the F77 and FFLAGS environment variables.
|
||||
Only the FC and FCFLAGS environment variables are used.
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue