diff options
author | Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com> | 2024-10-24 18:04:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 04:04:29 -0600 |
commit | 8a75cdad9ad7744527afba19da791286d82531b3 (patch) | |
tree | 543e16e0af9ef7e7c7732bfca0e2bde8ee4d8b1f | |
parent | e0eea48ccff37023e2d9e48067baece8dee80916 (diff) | |
download | spack-8a75cdad9ad7744527afba19da791286d82531b3.tar.gz spack-8a75cdad9ad7744527afba19da791286d82531b3.tar.bz2 spack-8a75cdad9ad7744527afba19da791286d82531b3.tar.xz spack-8a75cdad9ad7744527afba19da791286d82531b3.zip |
supermagic: new package (#47176)
-rw-r--r-- | var/spack/repos/builtin/packages/supermagic/package.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/supermagic/package.py b/var/spack/repos/builtin/packages/supermagic/package.py new file mode 100644 index 0000000000..23baff3c02 --- /dev/null +++ b/var/spack/repos/builtin/packages/supermagic/package.py @@ -0,0 +1,34 @@ +# Copyright 2013-2024 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 Supermagic(AutotoolsPackage): + """Supermagic is a very simple MPI sanity code. Nothing more, nothing less.""" + + homepage = "https://hpc.github.io/supermagic" + url = "https://hpc.github.io/supermagic/dists/supermagic-1.2.tar.gz" + git = "https://github.com/hpc/supermagic.git" + + maintainers("marcodelapierre") + + version("master", branch="master") + version("1.2", sha256="f8f6e0f74a58400d8d3c6b95c4b943aa8608e15a318fcfe12fc9abb008aed734") + + depends_on("mpi") + + depends_on("autoconf", when="@master", type="build") + depends_on("automake", when="@master", type="build") + depends_on("libtool", when="@master", type="build") + + @when("@master") + def autoreconf(self, spec, prefix): + bash = which("bash") + bash("./autogen") + + def configure_args(self): + config_args = ["CC={0}".format(self.spec["mpi"].mpicc)] + return config_args |