1 |
commit: 353bb85d92306ade2372aa79c43bef0b3d876b9b |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 18:48:48 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 00:40:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=353bb85d |
7 |
|
8 |
net-libs/google-cloud-cpp: port to cmake.eclass |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
.../google-cloud-cpp-0.10.0-r2.ebuild | 61 ++++++++++++++++++++++ |
14 |
1 file changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild b/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..b441242910a4 |
19 |
--- /dev/null |
20 |
+++ b/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild |
21 |
@@ -0,0 +1,61 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+CMAKE_MAKEFILE_GENERATOR=emake |
28 |
+inherit cmake |
29 |
+ |
30 |
+JSON_VER="3.4.0" |
31 |
+GOOGLEAPIS_COMMIT="6a3277c0656219174ff7c345f31fb20a90b30b97" |
32 |
+ |
33 |
+DESCRIPTION="Google Cloud Client Library for C++" |
34 |
+HOMEPAGE="https://cloud.google.com/" |
35 |
+SRC_URI="https://github.com/GoogleCloudPlatform/google-cloud-cpp/archive/v${PV}.tar.gz -> ${P}.tar.gz |
36 |
+ https://github.com/nlohmann/json/releases/download/v${JSON_VER}/json.hpp -> nlohmann-json-${JSON_VER}-json.hpp |
37 |
+ https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_COMMIT}.tar.gz -> googleapis-${GOOGLEAPIS_COMMIT}.tar.gz" |
38 |
+ |
39 |
+LICENSE="Apache-2.0" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+RESTRICT="test" |
45 |
+RDEPEND="dev-libs/protobuf:= |
46 |
+ dev-libs/crc32c |
47 |
+ dev-libs/openssl:= |
48 |
+ net-misc/curl |
49 |
+ net-libs/grpc:=" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-cpp/gtest" |
52 |
+ |
53 |
+DOCS=( README.md ) |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch" |
56 |
+) |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local mycmakeargs=( |
60 |
+ -DGOOGLE_CLOUD_CPP_DEPENDENCY_PROVIDER=package |
61 |
+ -DBUILD_TESTING=OFF |
62 |
+ -DCMAKE_CXX_STANDARD=17 |
63 |
+ ) |
64 |
+ |
65 |
+ cmake_src_configure |
66 |
+ |
67 |
+ mkdir -p "${BUILD_DIR}/external/nlohmann_json/src/" || die |
68 |
+ cp "${DISTDIR}/nlohmann-json-${JSON_VER}-json.hpp" "${BUILD_DIR}/external/nlohmann_json/src/json.hpp" || die |
69 |
+ |
70 |
+ mkdir -p "${BUILD_DIR}/external/googleapis/src/" || die |
71 |
+ cp "${DISTDIR}/googleapis-${GOOGLEAPIS_COMMIT}.tar.gz" \ |
72 |
+ "${BUILD_DIR}/external/googleapis/src/${GOOGLEAPIS_COMMIT}.tar.gz" || die |
73 |
+} |
74 |
+ |
75 |
+src_test() { |
76 |
+ # test fails |
77 |
+ local myctestargs=( |
78 |
+ -E internal_parse_rfc3339_test |
79 |
+ ) |
80 |
+ |
81 |
+ cmake_src_test |
82 |
+} |