summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDaniele Cesarini <d.cesarini@cineca.it>2023-07-12 10:21:36 +0200
committerGitHub <noreply@github.com>2023-07-12 10:21:36 +0200
commitca4c59cd77e79123a310b0845e0c91780bbdf0e4 (patch)
tree7c48d2a168ff68b0f0f6ba186aa45a05398afa62 /var
parentdfcb3bca65b9f28102e0a38b476bc3c3e272343e (diff)
downloadspack-ca4c59cd77e79123a310b0845e0c91780bbdf0e4.tar.gz
spack-ca4c59cd77e79123a310b0845e0c91780bbdf0e4.tar.bz2
spack-ca4c59cd77e79123a310b0845e0c91780bbdf0e4.tar.xz
spack-ca4c59cd77e79123a310b0845e0c91780bbdf0e4.zip
REGALE: add new package (#38444)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/regale/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/regale/package.py b/var/spack/repos/builtin/packages/regale/package.py
new file mode 100644
index 0000000000..705533fabd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/regale/package.py
@@ -0,0 +1,29 @@
+# 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 Regale(CMakePackage):
+ """REGALE library is a C/C++ library developed in the European Project
+ REGALE used to allow standard communication among HPC power stack tools."""
+
+ homepage = "https://regale-project.eu/"
+ url = "https://gricad-gitlab.univ-grenoble-alpes.fr/regale/tools/regale/-/archive/v1.0/regale-v1.0.tar.gz"
+
+ version("1.0", sha256="894b0927372467e765049e79b855a9a277def65638013f68a1f2b6e837e35663")
+
+ depends_on("eprosima-fastdds")
+
+ variant("examples", default=False, description="Build examples")
+ variant("shared", default=True, description="Build shared libraries")
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("REGALE_EXAMPLES", "examples"),
+ self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
+ ]
+
+ return args