From ebf6f71355e48706ddcf4bcb956a658de31124d8 Mon Sep 17 00:00:00 2001 From: Desmond Orton Date: Fri, 28 May 2021 08:35:18 -0600 Subject: [PATCH] modeltest-ng: add new package (#23765) --- .../builtin/packages/modeltest-ng/package.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/modeltest-ng/package.py diff --git a/var/spack/repos/builtin/packages/modeltest-ng/package.py b/var/spack/repos/builtin/packages/modeltest-ng/package.py new file mode 100644 index 0000000000..508090fa6f --- /dev/null +++ b/var/spack/repos/builtin/packages/modeltest-ng/package.py @@ -0,0 +1,29 @@ +# 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 ModeltestNg(CMakePackage): + """Best-fit model selection""" + + homepage = "https://github.com/ddarriba/modeltest" + url = "https://github.com/ddarriba/modeltest/archive/refs/tags/v0.1.7.tar.gz" + git = "https://github.com/ddarriba/modeltest.git" + + maintainers = ['dorton21'] + + version('0.1.7', commit="cc028888f1d4222aaa53b99c6b02cd934a279001", submodules=True) + + variant('mpi', default=False, description="Enable MPI") + + depends_on('glib') + depends_on('bison', type='build') + depends_on('flex', type='build') + depends_on('openmpi', when='+mpi') + + def cmake_args(self): + return [ + self.define_from_variant('ENABLE_MPI', 'mpi')]