Diff google-cloud-cpp-0.10.0-r2 with a google-cloud-cpp-1.36.0
/usr/portage/net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild 2023-10-09 14:52:34.472368476 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
CMAKE_MAKEFILE_GENERATOR=emake |
|
7 | 6 |
inherit cmake |
8 | 7 | |
9 |
JSON_VER="3.4.0" |
|
10 |
GOOGLEAPIS_COMMIT="6a3277c0656219174ff7c345f31fb20a90b30b97" |
|
8 |
# From cmake/GoogleapisConfig.cmake |
|
9 |
GOOGLEAPIS_COMMIT="28c6bb97cac6f16c69879be4e655674a74b886ef" |
|
11 | 10 | |
12 | 11 |
DESCRIPTION="Google Cloud Client Library for C++" |
13 | 12 |
HOMEPAGE="https://cloud.google.com/" |
14 | 13 |
SRC_URI="https://github.com/GoogleCloudPlatform/google-cloud-cpp/archive/v${PV}.tar.gz -> ${P}.tar.gz |
15 |
https://github.com/nlohmann/json/releases/download/v${JSON_VER}/json.hpp -> nlohmann-json-${JSON_VER}-json.hpp |
|
16 | 14 |
https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_COMMIT}.tar.gz -> googleapis-${GOOGLEAPIS_COMMIT}.tar.gz" |
17 | 15 | |
18 | 16 |
LICENSE="Apache-2.0" |
19 | 17 |
SLOT="0" |
20 | 18 |
KEYWORDS="~amd64 ~x86" |
21 |
IUSE="" |
|
19 |
IUSE="test" |
|
22 | 20 | |
21 |
# Tests need a GCP account |
|
23 | 22 |
RESTRICT="test" |
24 |
RDEPEND="dev-libs/protobuf:= |
|
23 |
RDEPEND="dev-cpp/abseil-cpp:= |
|
24 |
dev-cpp/nlohmann_json |
|
25 |
dev-libs/protobuf:= |
|
25 | 26 |
dev-libs/crc32c |
26 | 27 |
dev-libs/openssl:= |
28 |
dev-libs/re2:= |
|
27 | 29 |
net-misc/curl |
28 |
net-libs/grpc:=" |
|
30 |
net-libs/grpc:= |
|
31 |
sys-libs/zlib" |
|
29 | 32 |
DEPEND="${RDEPEND} |
30 |
dev-cpp/gtest" |
|
33 |
dev-cpp/gtest |
|
34 |
test? ( |
|
35 |
dev-cpp/benchmark |
|
36 |
)" |
|
31 | 37 | |
32 | 38 |
DOCS=( README.md ) |
33 |
PATCHES=( |
|
34 |
"${FILESDIR}/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch" |
|
35 |
) |
|
36 | 39 | |
37 | 40 |
src_configure() { |
38 | 41 |
local mycmakeargs=( |
39 |
-DGOOGLE_CLOUD_CPP_DEPENDENCY_PROVIDER=package |
|
40 |
-DBUILD_TESTING=OFF |
|
42 |
-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF |
|
43 |
-DGOOGLE_CLOUD_CPP_ENABLE_EXAMPLES=OFF |
|
44 |
-DBUILD_TESTING=$(usex test) |
|
41 | 45 |
-DCMAKE_CXX_STANDARD=17 |
42 | 46 |
) |
43 | 47 | |
44 | 48 |
cmake_src_configure |
45 | 49 | |
46 |
mkdir -p "${BUILD_DIR}/external/nlohmann_json/src/" || die |
|
47 |
cp "${DISTDIR}/nlohmann-json-${JSON_VER}-json.hpp" "${BUILD_DIR}/external/nlohmann_json/src/json.hpp" || die |
|
48 | ||
49 | 50 |
mkdir -p "${BUILD_DIR}/external/googleapis/src/" || die |
50 | 51 |
cp "${DISTDIR}/googleapis-${GOOGLEAPIS_COMMIT}.tar.gz" \ |
51 | 52 |
"${BUILD_DIR}/external/googleapis/src/${GOOGLEAPIS_COMMIT}.tar.gz" || die |