git: 4b4626851f5e - main - devel/prometheus-cpp: New port!

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Mon, 07 Jul 2025 16:13:00 UTC
The branch main has been updated by zi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b4626851f5eb1286f67430b687c634f61cc5d26

commit 4b4626851f5eb1286f67430b687c634f61cc5d26
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2025-07-07 16:12:43 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2025-07-07 16:12:43 +0000

    devel/prometheus-cpp: New port!
    
    This library aims to enable Metrics-Driven Development for C++ services.
    
    It implements the Prometheus Data Model, a powerful abstraction on which
    to collect and expose metrics. We offer the possibility for metrics to
    be collected by Prometheus, but other push/pull collections can be added
    as plugins.
---
 devel/Makefile                 |  1 +
 devel/prometheus-cpp/Makefile  | 23 +++++++++++++++++++++++
 devel/prometheus-cpp/distinfo  |  3 +++
 devel/prometheus-cpp/pkg-descr |  6 ++++++
 devel/prometheus-cpp/pkg-plist | 29 +++++++++++++++++++++++++++++
 5 files changed, 62 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8eb929e0150a..8dc88ab1064f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4326,6 +4326,7 @@
     SUBDIR += premake4
     SUBDIR += premake5
     SUBDIR += projectcenter
+    SUBDIR += prometheus-cpp
     SUBDIR += protobuf
     SUBDIR += protobuf-c
     SUBDIR += protobuf-go
diff --git a/devel/prometheus-cpp/Makefile b/devel/prometheus-cpp/Makefile
new file mode 100644
index 000000000000..dc115e58e195
--- /dev/null
+++ b/devel/prometheus-cpp/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	prometheus-cpp
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.3.0
+CATEGORIES=	devel
+
+MAINTAINER=	zi@FreeBSD.org
+COMMENT=	Prometheus Client Library for Modern C++
+WWW=		https://github.com/jupp0r/prometheus-cpp
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake ssl
+USE_GITHUB=	yes
+GH_ACCOUNT=	jupp0r
+
+CMAKE_OFF=	ENABLE_PUSH ENABLE_COMPRESSION THIRDPARTY_CIVETWEB_WITH_SSL \
+		ENABLE_TESTING ENABLE_PULL
+CMAKE_ON=	BUILD_SHARED_LIBS
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/devel/prometheus-cpp/distinfo b/devel/prometheus-cpp/distinfo
new file mode 100644
index 000000000000..770e35177003
--- /dev/null
+++ b/devel/prometheus-cpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751651606
+SHA256 (jupp0r-prometheus-cpp-v1.3.0_GH0.tar.gz) = ac6e958405a29fbbea9db70b00fa3c420e16ad32e1baf941ab233ba031dd72ee
+SIZE (jupp0r-prometheus-cpp-v1.3.0_GH0.tar.gz) = 69921
diff --git a/devel/prometheus-cpp/pkg-descr b/devel/prometheus-cpp/pkg-descr
new file mode 100644
index 000000000000..d4f5cc9e9fd3
--- /dev/null
+++ b/devel/prometheus-cpp/pkg-descr
@@ -0,0 +1,6 @@
+This library aims to enable Metrics-Driven Development for C++ services.
+
+It implements the Prometheus Data Model, a powerful abstraction on which
+to collect and expose metrics. We offer the possibility for metrics to
+be collected by Prometheus, but other push/pull collections can be added
+as plugins.
diff --git a/devel/prometheus-cpp/pkg-plist b/devel/prometheus-cpp/pkg-plist
new file mode 100644
index 000000000000..056c557ec25d
--- /dev/null
+++ b/devel/prometheus-cpp/pkg-plist
@@ -0,0 +1,29 @@
+include/prometheus/check_names.h
+include/prometheus/client_metric.h
+include/prometheus/collectable.h
+include/prometheus/counter.h
+include/prometheus/detail/builder.h
+include/prometheus/detail/ckms_quantiles.h
+include/prometheus/detail/core_export.h
+include/prometheus/detail/future_std.h
+include/prometheus/detail/time_window_quantiles.h
+include/prometheus/detail/utils.h
+include/prometheus/family.h
+include/prometheus/gauge.h
+include/prometheus/histogram.h
+include/prometheus/info.h
+include/prometheus/labels.h
+include/prometheus/metric_family.h
+include/prometheus/metric_type.h
+include/prometheus/registry.h
+include/prometheus/serializer.h
+include/prometheus/summary.h
+include/prometheus/text_serializer.h
+lib/cmake/prometheus-cpp/prometheus-cpp-config-version.cmake
+lib/cmake/prometheus-cpp/prometheus-cpp-config.cmake
+lib/cmake/prometheus-cpp/prometheus-cpp-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/prometheus-cpp/prometheus-cpp-targets.cmake
+lib/libprometheus-cpp-core.so
+lib/libprometheus-cpp-core.so.1.3
+lib/libprometheus-cpp-core.so.%%PORTVERSION%%
+libdata/pkgconfig/prometheus-cpp-core.pc