summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/flit/package.py
blob: bb2822836d4cb1b944baf4c4e70214d2b9e7cfbc (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
# 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 Flit(MakefilePackage):
    """Floating-point Litmus Tests (FLiT) is a C++ test infrastructure for
    detecting variability in floating-point code caused by variations in
    compiler code generation, hardware and execution environments."""

    homepage = "https://pruners.github.io/flit"
    url      = "https://github.com/PRUNERS/FLiT/archive/v2.1.0.tar.gz"
    git      = "https://github.com/PRUNERS/FLiT.git"

    tags = ['e4s']

    version('develop', branch='devel')
    version('2.1.0', sha256='b31ffa02fda1ab0f5555acdc6edc353d93d53ae8ef85e099f83bcf1c83e70885')

    maintainers = ['mikebentley15']

    # Add dependencies
    depends_on('python@3:',      type='run')
    depends_on('py-toml',        type='run')
    depends_on('py-pyelftools',  type='run', when='@:2.1.0')
    depends_on('gmake',          type=('run', 'build'))
    depends_on('sqlite@3:',      type='run')

    def edit(self, spec, prefix):
        env['PREFIX'] = prefix