summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Valat <sebastien.valat.dev@orange.fr>2023-02-10 04:58:28 +0100
committerGitHub <noreply@github.com>2023-02-09 19:58:28 -0800
commitc818e36d79021466ef918610c7635af2c7d28701 (patch)
treeca405f795b721e6605a16878a9815a97a6542ed2
parent4fbbb239338ded9a6e2c1834765e8393281a3f40 (diff)
downloadspack-c818e36d79021466ef918610c7635af2c7d28701.tar.gz
spack-c818e36d79021466ef918610c7635af2c7d28701.tar.bz2
spack-c818e36d79021466ef918610c7635af2c7d28701.tar.xz
spack-c818e36d79021466ef918610c7635af2c7d28701.zip
malt: new package (versions : 1.2.1) (#35272)
* malt: new package (versions : 1.2.1) * malt: Fix remarks on new package (versions : 1.2.1) * malt: Fix PR remarks by removing un-needed functions overriding * malt: Fix NodeJs => NodeJS * Use new maintainers syntax.
-rw-r--r--var/spack/repos/builtin/packages/malt/package.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/malt/package.py b/var/spack/repos/builtin/packages/malt/package.py
new file mode 100644
index 0000000000..5569e62d76
--- /dev/null
+++ b/var/spack/repos/builtin/packages/malt/package.py
@@ -0,0 +1,42 @@
+# 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 Malt(CMakePackage):
+ """
+ MALT is a memory profile tool to track mallocs in a C/C++ application and report
+ allocation information (lifetime, sizes...) in a friendly web graphical interface
+ by annotating the source code and proving charts.
+ """
+
+ # Project infos
+ homepage = "https://memtt.github.io/malt"
+ url = "https://github.com/memtt/malt/archive/v1.2.1.tar.gz"
+ maintainers("svalat")
+
+ # Versions
+ version("1.2.1", sha256="0e4c0743561f9fcc04dc83457386167a9851fc9289765f8b4f9390384ae3618a")
+
+ # Variants
+ variant(
+ "nodejs",
+ default=True,
+ description="Enable the installation of the Web GUI based on NodeJS",
+ )
+ variant(
+ "qt",
+ default=False,
+ when="+nodejs",
+ description="Build the viewer based on NodeJS + QT web toolkit (requires NodeJS too)",
+ )
+
+ # Dependencies
+ depends_on("node-js@18:", type=("build", "run"), when="+nodejs")
+ depends_on("libelf")
+ depends_on("libunwind")
+ depends_on("binutils", type="run")
+ depends_on("qt", when="+qt")