diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild')
-rw-r--r-- | net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild b/net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild new file mode 100644 index 000000000000..d0954a056cf3 --- /dev/null +++ b/net-libs/google-cloud-cpp/google-cloud-cpp-1.36.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# From cmake/GoogleapisConfig.cmake +GOOGLEAPIS_COMMIT="28c6bb97cac6f16c69879be4e655674a74b886ef" + +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 ~x86" +IUSE="test" + +# Tests need a GCP account +RESTRICT="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() { + # test fails + local myctestargs=( + -E internal_parse_rfc3339_test + ) + + cmake_src_test +} |