summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2024-11-17 11:41:06 -0800
committerJason Zaman <perfinion@gentoo.org>2024-11-17 18:00:27 -0800
commit6dd2042a79b2f4463899d10f2466e81bc8f62c20 (patch)
tree107fb78eb7d24efb8a7f5682f18afeace5e9ca19 /net-libs
parentsys-apps/inxi: Stabilize 3.3.35.1 x86, #943700 (diff)
downloadgentoo-6dd2042a79b2f4463899d10f2466e81bc8f62c20.tar.gz
gentoo-6dd2042a79b2f4463899d10f2466e81bc8f62c20.tar.bz2
gentoo-6dd2042a79b2f4463899d10f2466e81bc8f62c20.zip
net-libs/google-cloud-cpp: add 2.30.0
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/google-cloud-cpp/Manifest2
-rw-r--r--net-libs/google-cloud-cpp/google-cloud-cpp-2.30.0.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/net-libs/google-cloud-cpp/Manifest b/net-libs/google-cloud-cpp/Manifest
index d4da5f6c7ee5..41995c48d86c 100644
--- a/net-libs/google-cloud-cpp/Manifest
+++ b/net-libs/google-cloud-cpp/Manifest
@@ -1,2 +1,4 @@
DIST google-cloud-cpp-2.19.0.tar.gz 12289079 BLAKE2B 915acacdc8e757e95244c715b74618e34ae3a22ea39bd0ae3e628dcd07f0dc99a2baaa11f4f69b9d2134ffc10af9e9437cf8862eff19a720ff415e0b1b15e6b8 SHA512 a392da19ac353409ecbf30e390803b2e34670552fd54466a08ee554a77c893d447289b30d5841c7f79b2a23244a269d8ecac8f7fbd8a34dda45ce2d8b1d46817
+DIST google-cloud-cpp-2.30.0.tar.gz 14790871 BLAKE2B bc2dfc419317bb812a92923d6cdc5f185d2897f29c768a99f95f3c9f7effe527ab04f787f0dc870c0e4fdb1482060936a2e433d849ee36cfc27ce9820b908aa0 SHA512 9020e5f762285df163b91ac8cea3198d5744a772374237959896a5e5837010de87b8f637b13ac96effde2053217bb91e1275ab9a0e27bf946e0189b2289b29ef
DIST googleapis-0e3b813b0d0da539eacbe86b8716feeed00943c5.tar.gz 7914422 BLAKE2B 05dfb0523a4208c84d51e99bb3edd531b1d4069971fb6810ab2c31b7bc1b14824be9a4c5d0e176ad741d1b902242702be7f125595d22dd5a6d75d0a9e8790ed8 SHA512 56a9fd1ff464f33d80dcce1bfc927e4332fe2e986f731b3f8ceb583265a2b23a659273dc6777a100d563ed972672353f8fd0292f894c42b4142bb5d7882f8ef6
+DIST googleapis-69e9dff10df4fa1e338712d38dc26b46791a6e94.tar.gz 8807423 BLAKE2B 3818be748f08f0e8319aad8dcfabc618a623956199ce86a194da57f8ea7fc4f6c6f61efe007cb7d1a824c038bd329f9afc8662ee17c1aa7e1112aedbcc4464ea SHA512 6b7cf1b45ee1ee1ad61ab7a1f776afc8f3e6a441b93739aac7b9220dce3a5cfcfa2d04c9700be324eed1ec72e5e7ca52bbf4509d7daead90e55da56a373e9091
diff --git a/net-libs/google-cloud-cpp/google-cloud-cpp-2.30.0.ebuild b/net-libs/google-cloud-cpp/google-cloud-cpp-2.30.0.ebuild
new file mode 100644
index 000000000000..b36c5e9c47e3
--- /dev/null
+++ b/net-libs/google-cloud-cpp/google-cloud-cpp-2.30.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+# From cmake/GoogleapisConfig.cmake
+GOOGLEAPIS_COMMIT="69e9dff10df4fa1e338712d38dc26b46791a6e94"
+
+DESCRIPTION="Google Cloud Client Library for C++"
+HOMEPAGE="https://cloud.google.com/"
+SRC_URI="https://github.com/GoogleCloudPlatform/google-cloud-cpp/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_COMMIT}.tar.gz -> googleapis-${GOOGLEAPIS_COMMIT}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-cpp/abseil-cpp:=
+ dev-cpp/nlohmann_json
+ dev-libs/protobuf:=
+ dev-libs/crc32c
+ dev-libs/openssl:=
+ dev-libs/re2:=
+ net-misc/curl
+ net-libs/grpc:=
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ dev-cpp/gtest
+ test? (
+ dev-cpp/benchmark
+ )"
+
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF
+ -DGOOGLE_CLOUD_CPP_ENABLE_EXAMPLES=OFF
+ -DBUILD_TESTING=$(usex test)
+ -DCMAKE_CXX_STANDARD=17
+ )
+
+ cmake_src_configure
+
+ mkdir -p "${BUILD_DIR}/external/googleapis/src/" || die
+ cp "${DISTDIR}/googleapis-${GOOGLEAPIS_COMMIT}.tar.gz" \
+ "${BUILD_DIR}/external/googleapis/src/${GOOGLEAPIS_COMMIT}.tar.gz" || die
+}
+
+src_test() {
+ # ClogEnvironment fails under portage sandbox, no fail outside
+ cmake_src_test -LE "integration-test" -E common_log_test
+}