1 |
commit: fbe439d0da459c4ccf6e85976425ce7287a346fa |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 26 17:56:14 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 05:55:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbe439d0 |
7 |
|
8 |
dev-cpp/prometheus-cpp: New package |
9 |
|
10 |
Bug: https://bugs.gentoo.org/733984 |
11 |
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-cpp/prometheus-cpp/Manifest | 1 + |
15 |
dev-cpp/prometheus-cpp/metadata.xml | 24 +++++++++++++ |
16 |
dev-cpp/prometheus-cpp/prometheus-cpp-0.9.0.ebuild | 39 ++++++++++++++++++++++ |
17 |
3 files changed, 64 insertions(+) |
18 |
|
19 |
diff --git a/dev-cpp/prometheus-cpp/Manifest b/dev-cpp/prometheus-cpp/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..7db715e0f9a |
22 |
--- /dev/null |
23 |
+++ b/dev-cpp/prometheus-cpp/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST prometheus-cpp-0.9.0.tar.gz 43924 BLAKE2B e2b26b257e44c63ae5bc2a703d0ee9247fd8f093ef58a3b00dec022af9cb56b18d20b74ccdb91899e2385b036c332b62d9959b9258082ca420fecf48926139d5 SHA512 d9d5fbbd8c8aad5dd6a5e872275324d689a0c57199e4158d74e13ea62b286fa71dee01bb4197b906b79792bf1ca4e67a46b5c04621d7070241ac32876f6de891 |
26 |
|
27 |
diff --git a/dev-cpp/prometheus-cpp/metadata.xml b/dev-cpp/prometheus-cpp/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..ece2117d6db |
30 |
--- /dev/null |
31 |
+++ b/dev-cpp/prometheus-cpp/metadata.xml |
32 |
@@ -0,0 +1,24 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <longdescription lang="en"> |
37 |
+ This library aims to enable Metrics-Driven Development for C++ services. |
38 |
+ It implements the Prometheus Data Model, a powerful abstraction on which |
39 |
+ to collect and expose metrics. We offer the possibility for metrics to |
40 |
+ be collected by Prometheus, but other push/pull collections can be added |
41 |
+ as plugins. |
42 |
+ </longdescription> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>vilhelm.gray@×××××.com</email> |
45 |
+ <name>William Breathitt Gray</name> |
46 |
+ </maintainer> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>proxy-maint@g.o</email> |
49 |
+ <name>Proxy Maintainers</name> |
50 |
+ </maintainer> |
51 |
+ <upstream> |
52 |
+ <bugs-to>https://github.com/jupp0r/prometheus-cpp/issues</bugs-to> |
53 |
+ <doc lang="en">https://jupp0r.github.io/prometheus-cpp/</doc> |
54 |
+ <remote-id type="github">jupp0r/prometheus-cpp</remote-id> |
55 |
+ </upstream> |
56 |
+</pkgmetadata> |
57 |
|
58 |
diff --git a/dev-cpp/prometheus-cpp/prometheus-cpp-0.9.0.ebuild b/dev-cpp/prometheus-cpp/prometheus-cpp-0.9.0.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..3cd75592159 |
61 |
--- /dev/null |
62 |
+++ b/dev-cpp/prometheus-cpp/prometheus-cpp-0.9.0.ebuild |
63 |
@@ -0,0 +1,39 @@ |
64 |
+# Copyright 1999-2020 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+ |
69 |
+inherit cmake |
70 |
+ |
71 |
+DESCRIPTION="Prometheus Client Library for Modern C++" |
72 |
+HOMEPAGE="https://github.com/jupp0r/prometheus-cpp" |
73 |
+SRC_URI="https://github.com/jupp0r/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="MIT" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~x86" |
78 |
+IUSE="test zlib" |
79 |
+RESTRICT="!test? ( test )" |
80 |
+ |
81 |
+RDEPEND=" |
82 |
+ dev-libs/cppcodec |
83 |
+ net-misc/curl |
84 |
+ sys-libs/zlib |
85 |
+ www-servers/civetweb[cxx]" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ test? ( |
88 |
+ dev-cpp/benchmark |
89 |
+ dev-cpp/gtest |
90 |
+ )" |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local mycmakeargs=( |
94 |
+ -DENABLE_PULL=yes |
95 |
+ -DENABLE_PUSH=yes |
96 |
+ -DENABLE_COMPRESSION=$(usex zlib) |
97 |
+ -DENABLE_TESTING=$(usex test) |
98 |
+ -DUSE_THIRDPARTY_LIBRARIES=OFF |
99 |
+ ) |
100 |
+ |
101 |
+ cmake_src_configure |
102 |
+} |