summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cvise/package.py
blob: dc9e4ec4378984d04a7f0dc6bfc01a40ff0c78d0 (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
38
# 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 Cvise(CMakePackage):
    """C-Vise is a super-parallel Python port of the C-Reduce. The port is
    fully compatible to the C-Reduce and uses the same efficient LLVM-based
    C/C++ reduction tool named clang_delta."""

    homepage = "https://github.com/marxin/cvise"
    url = "https://github.com/marxin/cvise"
    git = "https://github.com/marxin/cvise.git"

    license("NCSA")

    version("master", branch="master")
    version("2.7.0", tag="v2.7.0", commit="d9e4a50514d9931b2a1293755a7e96e0f9520032")

    variant("pytest", default=False, description="Add py-pytest as dependency")
    variant("colordiff", default=False, description="Add colordiff support")

    depends_on("cmake", type="build")
    depends_on("flex", type=("build", "run"))
    depends_on("llvm@9.0.0:", type=("build", "run"))
    depends_on("python@3.6:", type=("build", "run"))
    depends_on("py-pebble", type=("build", "run"))
    depends_on("py-chardet", type=("build", "run"))
    depends_on("py-psutil", type=("build", "run"))
    depends_on("unifdef", type=("build", "run"))

    depends_on("py-pytest", when="+pytest", type=("build", "run"))
    depends_on("colordiff", when="+colordiff", type=("build", "run"))

    def cmake_args(self):
        return ["-DPYTHON_EXECUTABLE=" + self.spec["python"].command.path]