1 |
commit: 7c555ab640ef40c86dc05b244c1080eb016814bd |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 28 11:19:21 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 12:06:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c555ab6 |
7 |
|
8 |
dev-cpp/prometheus-cpp: add 1.0.0 |
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.0.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 8266f0a3e047..eb903509a93e 100644 |
18 |
--- a/dev-cpp/prometheus-cpp/Manifest |
19 |
+++ b/dev-cpp/prometheus-cpp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST prometheus-cpp-0.13.0.tar.gz 55448 BLAKE2B 5790e74f5bb783070b6928adf9d850dc59ff8507d580a96549e62a2ea9ca1cf5b5de0fb445dd373bbae6da3fdae59d1dbf2eca5e04dc3d6adb58e5c52da1e666 SHA512 d2c6708047cec1998697931d5e9b420dfa513ade9f298761b08ae87a5526cbe64476ebc56793c21d8c3d741e3a4db5ce8d27af1d39b4ca30a45de34f40fdca67 |
22 |
+DIST prometheus-cpp-1.0.0.tar.gz 56244 BLAKE2B 51ff199c0cd09367de873310a835b7a4a5893de11a6115b3de8ef142eb12b326ea7498a8adc155f3bbea6389da41eef91b5ef23cb0227ef1d1ceb64e4d7eac2e SHA512 baeb12725dd47b170e1ac94c23b2b18ba8aa11dedd95af7adee8fdf9ddebaddfca1ef75c30b1d65c94e1cfbcba2c41e0f4686f1a1de66beaba7dcd70ab190164 |
23 |
|
24 |
diff --git a/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.0.ebuild b/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..07f8033472af |
27 |
--- /dev/null |
28 |
+++ b/dev-cpp/prometheus-cpp/prometheus-cpp-1.0.0.ebuild |
29 |
@@ -0,0 +1,41 @@ |
30 |
+# Copyright 1999-2021 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 |
+} |