prometheus-cpp: added package prometheus-cpp (#47384)

* prometheus-cpp: added package prometheus-cpp
* prometheus-cpp: edited PR for style
This commit is contained in:
Matthieu Dorier 2024-11-05 01:55:29 +00:00 committed by GitHub
parent 54aaa95a35
commit 8650ba3cea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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