hdf5: remove options. (#36272)

See https://github.com/Homebrew/homebrew-core/issues/31510.
This commit is contained in:
Mike McQuaid 2019-01-23 15:17:40 +00:00 committed by GitHub
parent cabcbcf228
commit f6af85d20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,22 +10,20 @@ class Hdf5 < Formula
sha256 "34af9edb3db5e46887106f70a7f6c7c3e4988c135e739089f5f13e0960edee3a" => :sierra
end
option "with-mpi", "Enable parallel support"
deprecated_option "enable-parallel" => "with-mpi"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "gcc" # for gfortran
depends_on "open-mpi" if build.with? "mpi"
depends_on "szip"
def install
inreplace %w[c++/src/h5c++.in fortran/src/h5fc.in tools/src/misc/h5cc.in],
"${libdir}/libhdf5.settings", "#{pkgshare}/libhdf5.settings"
"${libdir}/libhdf5.settings",
"#{pkgshare}/libhdf5.settings"
inreplace "src/Makefile.am", "settingsdir=$(libdir)", "settingsdir=#{pkgshare}"
inreplace "src/Makefile.am",
"settingsdir=$(libdir)",
"settingsdir=#{pkgshare}"
system "autoreconf", "-fiv"
@ -36,22 +34,9 @@ class Hdf5 < Formula
--with-szlib=#{Formula["szip"].opt_prefix}
--enable-build-mode=production
--enable-fortran
--enable-cxx
]
if build.without?("mpi")
args << "--enable-cxx"
else
args << "--disable-cxx"
end
if build.with? "mpi"
ENV["CC"] = "mpicc"
ENV["CXX"] = "mpicxx"
ENV["FC"] = "mpif90"
args << "--enable-parallel"
end
system "./configure", *args
system "make", "install"
end