summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mpilander/package.py
blob: 09c16141037902940895a59c1c95ba3d73886059 (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
39
40
41
42
43
44
45
46
# 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 Mpilander(CMakePackage):
    """There can only be one (MPI process)!"""

    homepage = "https://github.com/MPILander/MPILander"
    git = "https://github.com/MPILander/MPILander.git"

    maintainers("ax3l")

    license("MIT")

    version("develop", branch="master")

    # variant('cuda', default=False, description='Enable CUDA support')
    # variant(
    #     'schedulers',
    #     description='List of supported schedulers',
    #     values=('alps', 'lsf', 'tm', 'slurm', 'sge', 'loadleveler'),
    #     multi=True
    # )

    depends_on("cmake@3.9.2:", type="build")

    provides("mpi@:3.1")

    # compiler support
    conflicts("%gcc@:4.7")
    conflicts("%clang@:3.8")
    conflicts("%apple-clang@:7.4")
    conflicts("%intel@:16")

    def cmake_args(self):
        args = [
            # tests and examples
            self.define("BUILD_TESTING", self.run_tests),
            self.define("BUILD_EXAMPLES", self.run_tests),
        ]

        return args