summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/creduce/package.py
blob: 66779d0912e0e233faaa5d722db8a8a54fc38c89 (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
# 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 Creduce(CMakePackage):
    """C-Reduce is a tool that takes a large C, C++, or OpenCL file that has a
    property of interest (such as triggering a compiler bug) and automatically
    produces a much smaller C/C++ file that has the same property. It is
    intended for use by people who discover and report bugs in compilers and
    other tools that process source code."""

    homepage = "https://embed.cs.utah.edu/creduce/"
    url      = "https://github.com/csmith-project/creduce"
    git      = "https://github.com/csmith-project/creduce"
    maintainers = ['olupton']

    version('develop', branch='master')
    version('2.10.0', tag='creduce-2.10.0')

    depends_on('flex')
    depends_on('libxml2')
    depends_on('llvm@8.0.0', when='@:2.10')
    depends_on('perl')
    depends_on('perl-exporter-lite')
    depends_on('perl-file-which')
    depends_on('perl-getopt-tabular')
    depends_on('perl-regexp-common')
    depends_on('perl-termreadkey')
    depends_on('zlib')