summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/arc/package.py
blob: 958c9a26b15930c56e98759085e52c38fda65d12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2013-2023 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 Arc(CMakePackage):
    """ARC is an automatic resiliency library designed to provide security
    to lossy compressed data or other uint8_t data arrays

    forked from: https://github.com/FTHPC/ARC to support Spack after developer
    left grad school
    """

    homepage = "https://github.com/FTHPC/ARC"
    url = "https://github.com/FTHPC/ARC"
    git = "https://github.com/robertu94/ARC"

    maintainers("robertu94")

    version("master", branch="master")
    version("2021-12-01", commit="49d4a5df53a082f15a6959aef434224fd7b9beac")

    depends_on("libpressio+sz+zfp", when="+examples")

    variant("examples", description="build examples", default=False)
    variant("shared", description="build shared libraries", default=True)

    def cmake_args(self):
        args = [
            self.define("BUILD_TESTING", self.run_tests),
            self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
            self.define_from_variant("BUILD_EXAMPLES", "examples"),
        ]
        return args