summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/flit/package.py
blob: 6cd035f3b47bfbe3e98f16d76cfc79926d2c573b (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
# Copyright 2013-2021 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 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"
    url      = "https://github.com/PRUNERS/FLiT/archive/v2.1.0.tar.gz"

    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')
    depends_on('gmake',          type=('run', 'build'))
    depends_on('sqlite@3:',      type='run')

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