1 |
commit: 6ea1d5f1c249df859aad8ebb09505711365930b0 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 30 10:09:35 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 30 10:42:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ea1d5f1 |
7 |
|
8 |
dev-cpp/prometheus-cpp: add 1.0.1 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
dev-cpp/prometheus-cpp/Manifest | 1 + |
13 |
dev-cpp/prometheus-cpp/prometheus-cpp-1.0.1.ebuild | 41 ++++++++++++++++++++++ |
14 |
2 files changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-cpp/prometheus-cpp/Manifest b/dev-cpp/prometheus-cpp/Manifest |
17 |
index c9aa7b0d0b18..699cad4a7e1f 100644 |
18 |
--- a/dev-cpp/prometheus-cpp/Manifest |
19 |
+++ b/dev-cpp/prometheus-cpp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST prometheus-cpp-1.0.0.tar.gz 56244 BLAKE2B 51ff199c0cd09367de873310a835b7a4a5893de11a6115b3de8ef142eb12b326ea7498a8adc155f3bbea6389da41eef91b5ef23cb0227ef1d1ceb64e4d7eac2e SHA512 baeb12725dd47b170e1ac94c23b2b18ba8aa11dedd95af7adee8fdf9ddebaddfca1ef75c30b1d65c94e1cfbcba2c41e0f4686f1a1de66beaba7dcd70ab190164 |
22 |
+DIST prometheus-cpp-1.0.1.tar.gz 56673 BLAKE2B 2f2396de0c3c544e92ecdf9f973941f7b61784db690bf3811841a522d3c40cb885e273ce62e66721674f8911fea7b58dc6ae5f0dc10cfdca803054445ca18250 SHA512 eb81b92de986853401f8900d19dfc58d68227d49c74be294b408adc0374292fb462b1f7f7aee522fb03d6fc2ea56f3187fa6ec182aeea169b8bdce38054ee805 |
23 |
|
24 |
diff --git a/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.1.ebuild b/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..6239a46b04df |
27 |
--- /dev/null |
28 |
+++ b/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.1.ebuild |
29 |
@@ -0,0 +1,41 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit cmake |
36 |
+ |
37 |
+DESCRIPTION="Prometheus Client Library for Modern C++" |
38 |
+HOMEPAGE="https://github.com/jupp0r/prometheus-cpp" |
39 |
+SRC_URI="https://github.com/jupp0r/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~riscv ~x86" |
44 |
+IUSE="test zlib" |
45 |
+ |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND="net-misc/curl |
49 |
+ sys-libs/zlib |
50 |
+ www-servers/civetweb[cxx]" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ test? ( |
53 |
+ dev-cpp/benchmark |
54 |
+ dev-cpp/gtest |
55 |
+ )" |
56 |
+BDEPEND="virtual/pkgconfig" |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local mycmakeargs=( |
60 |
+ -DENABLE_PULL=yes |
61 |
+ -DENABLE_PUSH=yes |
62 |
+ -DENABLE_COMPRESSION=$(usex zlib) |
63 |
+ -DENABLE_TESTING=$(usex test) |
64 |
+ -DUSE_THIRDPARTY_LIBRARIES=OFF |
65 |
+ -DGENERATE_PKGCONFIG=ON |
66 |
+ -DRUN_IWYU=OFF |
67 |
+ ) |
68 |
+ |
69 |
+ cmake_src_configure |
70 |
+} |