2023-01-19 06:30:17 +08:00
|
|
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
2022-10-18 03:30:54 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
|
|
from spack.package import *
|
|
|
|
|
|
|
|
|
|
|
|
class SzCpp(CMakePackage):
|
|
|
|
"""Refactorization of SZ in cpp"""
|
|
|
|
|
|
|
|
homepage = "https://github.com/robertu94/meta_compressor/"
|
|
|
|
git = "https://github.com/robertu94/meta_compressor/"
|
|
|
|
|
2023-02-02 13:07:25 +08:00
|
|
|
maintainers("robertu94")
|
2022-10-18 03:30:54 +08:00
|
|
|
|
|
|
|
version("2022-01-27", commit="9441b79abc89d4bcce53fe18edf0df53fd92d1d7")
|
|
|
|
|
|
|
|
variant("shared", description="build shared libs", default=True)
|
|
|
|
|
|
|
|
depends_on("zstd")
|
|
|
|
depends_on("pkgconfig")
|
|
|
|
|
|
|
|
def cmake_args(self):
|
|
|
|
args = [
|
|
|
|
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
|
|
|
|
self.define("BUILD_TESTING", self.run_tests),
|
|
|
|
]
|
|
|
|
return args
|