update SPERR package (#35810)
* update SPERR package * remove blank line * update SPERR package * remove blank line --------- Co-authored-by: Samuel Li <Sam@Navada>
This commit is contained in:
parent
da33334488
commit
a7501105b1
@ -10,10 +10,15 @@ class Sperr(CMakePackage):
|
|||||||
"""SPERR is a lossy scientific (floating-point) data compressor that can
|
"""SPERR is a lossy scientific (floating-point) data compressor that can
|
||||||
perform either error-bounded or size-bounded data compression"""
|
perform either error-bounded or size-bounded data compression"""
|
||||||
|
|
||||||
|
# Package info
|
||||||
homepage = "https://github.com/NCAR/SPERR"
|
homepage = "https://github.com/NCAR/SPERR"
|
||||||
url = "https://github.com/NCAR/SPERR/archive/refs/tags/v0.5.tar.gz"
|
url = "https://github.com/NCAR/SPERR/archive/refs/tags/v0.6.2.tar.gz"
|
||||||
git = homepage
|
git = "https://github.com/NCAR/SPERR.git"
|
||||||
|
maintainers("shaomeng", "robertu94")
|
||||||
|
|
||||||
|
# Versions
|
||||||
|
version("main", branch="main")
|
||||||
|
version("0.6.2", sha256="d986997e2d79a1f27146ad02c623359976a1e72a1ab0d957e128d430cda3782d")
|
||||||
version("0.5", sha256="20ad48c0e7599d3e5866e024d0c49648eb817f72ad5459f5468122cf14a97171")
|
version("0.5", sha256="20ad48c0e7599d3e5866e024d0c49648eb817f72ad5459f5468122cf14a97171")
|
||||||
|
|
||||||
depends_on("git", type="build")
|
depends_on("git", type="build")
|
||||||
@ -21,10 +26,9 @@ class Sperr(CMakePackage):
|
|||||||
depends_on("pkgconfig", type=("build"), when="+zstd")
|
depends_on("pkgconfig", type=("build"), when="+zstd")
|
||||||
|
|
||||||
variant("shared", description="build shared libaries", default=True)
|
variant("shared", description="build shared libaries", default=True)
|
||||||
variant("zstd", description="use Zstd for more compression", default=True)
|
variant("zstd", description="use zstd for more compression", default=True)
|
||||||
variant("openmp", description="use openmp for acceleration", default=True)
|
variant("openmp", description="use openmp in 3D inputs", default=True)
|
||||||
|
variant("utilities", description="build SPERR CLI utilities", default=True)
|
||||||
maintainers("shaomeng", "robertu94")
|
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
# ensure the compiler supports OpenMP if it is used
|
# ensure the compiler supports OpenMP if it is used
|
||||||
@ -35,9 +39,9 @@ def cmake_args(self):
|
|||||||
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
|
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
|
||||||
self.define_from_variant("USE_ZSTD", "zstd"),
|
self.define_from_variant("USE_ZSTD", "zstd"),
|
||||||
self.define_from_variant("USE_OMP", "openmp"),
|
self.define_from_variant("USE_OMP", "openmp"),
|
||||||
|
self.define_from_variant("BUILD_CLI_UTILITIES", "utilities"),
|
||||||
"-DSPERR_PREFER_RPATH=OFF",
|
"-DSPERR_PREFER_RPATH=OFF",
|
||||||
"-DUSE_BUNDLED_ZSTD=OFF",
|
"-DUSE_BUNDLED_ZSTD=OFF",
|
||||||
"-DBUILD_CLI_UTILITIES=OFF",
|
|
||||||
"-DBUILD_UNIT_TESTS=OFF",
|
"-DBUILD_UNIT_TESTS=OFF",
|
||||||
]
|
]
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user