open-mpi: pass strict audit
Closes Homebrew/homebrew#39752. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
19d92833d4
commit
5977b3d120
1 changed files with 12 additions and 14 deletions
|
@ -1,11 +1,9 @@
|
|||
require 'formula'
|
||||
|
||||
class OpenMpi < Formula
|
||||
homepage 'https://www.open-mpi.org/'
|
||||
homepage "https://www.open-mpi.org/"
|
||||
# Wait for 1.8.6 and skip 1.8.5 due to a severe memory leak on OS X:
|
||||
# https://github.com/open-mpi/ompi/issues/579
|
||||
url 'https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.bz2'
|
||||
sha1 '88ae39850fcf0db05ac20e35dd9e4cacc75bde4d'
|
||||
url "https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.bz2"
|
||||
sha256 "23158d916e92c80e2924016b746a93913ba7fae9fff51bf68d5c2a0ae39a2f8a"
|
||||
|
||||
bottle do
|
||||
sha1 "a6ec98d40ab34bf2eb4dbe9223d5aa430ba749ed" => :yosemite
|
||||
|
@ -19,11 +17,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?
|
||||
|
@ -38,18 +36,18 @@ 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
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue