summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocco Meli <r.meli@bluemail.ch>2024-05-24 09:53:33 +0200
committerGitHub <noreply@github.com>2024-05-24 09:53:33 +0200
commit8aa490d6b7eeef433729ce5dddc89d92a2440b9e (patch)
tree883ed31f571b032d2a7c360a3b7327d32223ded5
parentd9d085da108c7aa08e698e07f4114dc55333c9c9 (diff)
downloadspack-8aa490d6b7eeef433729ce5dddc89d92a2440b9e.tar.gz
spack-8aa490d6b7eeef433729ce5dddc89d92a2440b9e.tar.bz2
spack-8aa490d6b7eeef433729ce5dddc89d92a2440b9e.tar.xz
spack-8aa490d6b7eeef433729ce5dddc89d92a2440b9e.zip
DLA-Future-Fortran: new package (#44314)
* Spglib: add version 2.4.0 * dla-future-fortran: new package version 0.1.0 * [@spackbot] updating style on behalf of RMeli * apply suggestion and add maintainer --------- Co-authored-by: RMeli <RMeli@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/dla-future-fortran/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dla-future-fortran/package.py b/var/spack/repos/builtin/packages/dla-future-fortran/package.py
new file mode 100644
index 0000000000..1dfdfc64a2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dla-future-fortran/package.py
@@ -0,0 +1,43 @@
+# 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 DlaFutureFortran(CMakePackage):
+ """
+ Fortran interface to the DLA-Future library.
+ """
+
+ homepage = "https://github.com/eth-cscs/DLA-Future-Fortran"
+ url = "https://github.com/eth-cscs/DLA-Future-Fortran/archive/v0.0.0.tar.gz"
+ git = "https://github.com/eth-cscs/DLA-Future-Fortran.git"
+
+ maintainers("RMeli", "rasolca", "aurianer")
+
+ license("BSD-3-Clause")
+
+ version("main", branch="main")
+ version("0.1.0", sha256="9fd8a105cbb2f3e1daf8a49910f98fce68ca0b954773dba98a91464cf2e7c1da")
+
+ variant("shared", default=True, description="Build shared libraries.")
+ variant("test", default=False, description="Build tests.")
+
+ generator("ninja")
+ depends_on("cmake@3.22:", type="build")
+
+ depends_on("dla-future@0.4.1: +scalapack")
+ depends_on("dla-future +shared", when="+shared")
+
+ depends_on("mpi", when="+test")
+ depends_on("py-fypp", when="+test", type="build")
+
+ def cmake_args(self):
+ args = []
+
+ args.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
+ args.append(self.define_from_variant("DLAF_FORTRAN_BUILD_TESTING", "test"))
+
+ return args