diff options
author | Matthieu Dorier <mdorier@anl.gov> | 2024-11-05 01:55:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 17:55:29 -0800 |
commit | 8650ba3cea6cfd15713f6f76898ef4e0d53e2abe (patch) | |
tree | b20d6c997ec4f1998d8480e37668791e2c7ab8ac /var | |
parent | 54aaa95a3517fa0c9068eaf98655fe13813d2968 (diff) | |
download | spack-8650ba3cea6cfd15713f6f76898ef4e0d53e2abe.tar.gz spack-8650ba3cea6cfd15713f6f76898ef4e0d53e2abe.tar.bz2 spack-8650ba3cea6cfd15713f6f76898ef4e0d53e2abe.tar.xz spack-8650ba3cea6cfd15713f6f76898ef4e0d53e2abe.zip |
prometheus-cpp: added package prometheus-cpp (#47384)
* prometheus-cpp: added package prometheus-cpp
* prometheus-cpp: edited PR for style
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/prometheus-cpp/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/prometheus-cpp/package.py b/var/spack/repos/builtin/packages/prometheus-cpp/package.py new file mode 100644 index 0000000000..fc1a62b150 --- /dev/null +++ b/var/spack/repos/builtin/packages/prometheus-cpp/package.py @@ -0,0 +1,30 @@ +# 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 PrometheusCpp(CMakePackage): + """Prometheus Client Library for Modern C++.""" + + homepage = "https://jupp0r.github.io/prometheus-cpp/" + url = "https://github.com/jupp0r/prometheus-cpp/releases/download/v1.2.4/prometheus-cpp-with-submodules.tar.gz" + git = "https://github.com/jupp0r/prometheus-cpp.git" + + license("MIT", checked_by="mdorier") + + version("master", branch="master", submodules=True) + version("1.2.4", sha256="0d6852291063c35853e88805c73b52f73c0c08b78c1e7bc4d588fcf72a7172eb") + + depends_on("c", type="build") + depends_on("cxx", type="build") + depends_on("cmake@3.14.0:", type="build") + depends_on("zlib") + depends_on("curl") + + def cmake_args(self): + args = ["-DBUILD_SHARED_LIBS=ON", "-DENABLE_TESTING=OFF"] + return args |