Skip to content

Commit

Permalink
hdf5 1.14.4.3
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 authored and iMichka committed Sep 26, 2024
1 parent f45ca9f commit 961f7dc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Formula/h/hdf5.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Hdf5 < Formula
desc "File format designed to store large amounts of data"
homepage "https://www.hdfgroup.org/HDF5"
url "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.3/src/hdf5-1.14.3.tar.bz2"
sha256 "9425f224ed75d1280bb46d6f26923dd938f9040e7eaebf57e66ec7357c08f917"
homepage "https://www.hdfgroup.org/solutions/hdf5/"
url "https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.4.3/hdf5-1.14.4-3.tar.gz"
version "1.14.4.3"
sha256 "019ac451d9e1cf89c0482ba2a06f07a46166caf23f60fea5ef3c37724a318e03"
license "BSD-3-Clause"
revision 1
version_scheme 1

# This regex isn't matching filenames within href attributes (as we normally
Expand Down Expand Up @@ -44,6 +44,10 @@ def install
-DHDF5_BUILD_CPP_LIB:BOOL=ON
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
]

# https://github.com/HDFGroup/hdf5/issues/4310
args << "-DHDF5_ENABLE_NONSTANDARD_FEATURE_FLOAT16:BOOL=OFF"

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args

# Avoid c shims in settings files
Expand Down Expand Up @@ -78,7 +82,7 @@ def install
}
EOS
system bin/"h5cc", "test.c"
assert_equal version.to_s, shell_output("./a.out").chomp
assert_equal version.major_minor_patch.to_s, shell_output("./a.out").chomp

(testpath/"test.f90").write <<~EOS
use hdf5
Expand Down Expand Up @@ -108,7 +112,7 @@ def install
end
EOS
system bin/"h5fc", "test.f90"
assert_equal version.to_s, shell_output("./a.out").chomp
assert_equal version.major_minor_patch.to_s, shell_output("./a.out").chomp

# Make sure that it was built with SZIP/libaec
config = shell_output("#{bin}/h5cc -showconfig")
Expand Down

0 comments on commit 961f7dc

Please sign in to comment.