Add spack package hdf5-vol-cache. (#32449)

* Add spack package hdf5-vol-cache.

* Style updates.

* Update var/spack/repos/builtin/packages/hdf5-vol-cache/package.py

* Remove outdated hdf5-cmake package options.
This commit is contained in:
Larry Knox 2022-09-12 04:18:05 -05:00 committed by GitHub
parent 3d904d8e65
commit 0bc9dbe6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,32 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Hdf5VolCache(CMakePackage):
"""Package for HDF5 cache VOL."""
homepage = "https://vol-cache.readthedocs.io"
git = "https://github.com/hpc-io/vol-cache.git"
maintainers = ["hyoklee", "lrknox"]
version("default", branch="develop")
version("v1.0", tag="v1.0")
depends_on("hdf5-vol-async")
def cmake_args(self):
"""Populate cmake arguments for HDF5 VOL."""
args = [
self.define("BUILD_SHARED_LIBS", True),
self.define("BUILD_TESTING", self.run_tests),
]
return args
def check(self):
if self.run_tests:
with working_dir(self.build_directory):
make("test")