hdf5@1.8: remove options

This commit is contained in:
FX Coudert 2018-12-15 08:40:22 +01:00
parent 0457bfc47d
commit 07f01a1241

View file

@ -12,21 +12,13 @@ class Hdf5AT18 < Formula
keg_only :versioned_formula
option "with-mpi", "Enable parallel support"
option :cxx11
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
ENV.cxx11 if build.cxx11?
inreplace %w[c++/src/h5c++.in fortran/src/h5fc.in tools/misc/h5cc.in],
"${libdir}/libhdf5.settings", "#{pkgshare}/libhdf5.settings"
@ -41,22 +33,9 @@ class Hdf5AT18 < Formula
--with-szlib=#{Formula["szip"].opt_prefix}
--enable-build-mode=production
--enable-fortran
--disable-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