summaryrefslogtreecommitdiff
path: root/dev-cpp/abseil-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/abseil-cpp')
-rw-r--r--dev-cpp/abseil-cpp/Manifest8
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild72
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20220623.1.ebuild70
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20230125.3-r5.ebuild68
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20230802.3.ebuild101
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild101
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild100
7 files changed, 0 insertions, 520 deletions
diff --git a/dev-cpp/abseil-cpp/Manifest b/dev-cpp/abseil-cpp/Manifest
index 5602c6a4758f..24eecd1c8dc0 100644
--- a/dev-cpp/abseil-cpp/Manifest
+++ b/dev-cpp/abseil-cpp/Manifest
@@ -1,12 +1,4 @@
-DIST abseil-cpp-20211102.0.tar.gz 1884080 BLAKE2B a148f3b7cc9516fbeacc25116032a956bfa3cce61b4294c226e826e1171d24c043ab199757a11fae3fec0bc307b2222773a6b4f4563b289f7565b0ce4f72318a SHA512 fed68aa434c02ec6faa9d1c81f1ad35b60ec024b44957e2e0ac31e6075e385c06a3e1b616afeb4bb7c2413191fd7827d82e1f9f0796b52ed21fb2c41dd9031cf
-DIST abseil-cpp-20220623.1.tar.gz 1957483 BLAKE2B 5bcf60b5a55882bcb78c7095a9892f6d1e5819fb116e325a8299fb22780ab009f0e1d92d5d8aca5ae0d4acc6d60e620e3357a24e389059f6e75d94f1cbdc1ced SHA512 ab4fccd9a2bfa0c5ad4b56c8e8f8b7ec7a8eca8b6cc6959802acadd1da785e1feb078c6ac621808cd699c82717a9e637dc426d94b70a8db7f2a807059d41cbc2
-DIST abseil-cpp-20230125.3.tar.gz 2119655 BLAKE2B 6c60201e4fc2cb5cd942fafb6023347739544f02fd257d003eeedff9e2e5137ee0c954342134d17a64844b9a5f309392a4c3ff9336907f35ba6c967ab03524ee SHA512 50509acfc4128fd31435631f71ac8cd0350acd9e290f78502723149016e7f07c9d84182ba99e0938b1873fecda09393d3fd7af8dabfb0d89cdcdd8a69a917e70
-DIST abseil-cpp-20230802.3.tar.gz 2157817 BLAKE2B 1fa88220b78ec714e5a50f79d7c9a258c65e64b0a98d9d3047cabbfd7e793ebfd35f90440621a69afb8dc840503b52c1a7c151af66235f1916101869d0db0e81 SHA512 9ae22d9d69a2225ce5fd6807b721434aea66b7d2244060e1d70f1ee6ed2b9c4e4ca56f7fc3785c8a67a7f483e5f0234e86184d382371bf681c08f1bdbfb0e8b9
-DIST abseil-cpp-20240116.3.tar.gz 2152015 BLAKE2B a499d01c13440b9b2788a8018777f8f08e653471b9d1549069007adc75bfae5ec7c37a545983b2077e4e39e3f459ab702d0d7d7828bcdc2583889fac15ee39f7 SHA512 8e7fb3aa355c56ae42820f5c53226091e01227f48c6ace05432b14ee0401cb62adbc67c520420b41cff512de3f6b09f96fadc58d36b8ebc649bd1c12c1fe8298
-DIST abseil-cpp-20240722.1.tar.gz 2242894 BLAKE2B fc20e3bb734ae17cd7d808cdf08e624a511d77255d17023104d3f3a5ad4844bc0b0618a9792a06492da5287f4f5cd8151ebbf4ab7c703c62d9fcdc955928b944 SHA512 6062a10220d1250127e2216cea65833f10f37459331254b59df437b5061af81a9645cab39479700cf1843ef7dee51fe125241b0ecb9f715705a45dce4ffae89e
DIST abseil-cpp-20250127.0-PR1834.patch 968 BLAKE2B b563725afcae9fcbddde9aef1e492ed9ca13201a3cb817044c2fa62a8d47d79600a2b1cb6018bb12a21a27fe765ab4a6f1b43239401d97962fd794520cff3ded SHA512 28bd3cea659ba400da928d8ce2bdf6a8dd25a3991abdca74b6cf7893e0ac206eb95b6f94beeb0a02516b4403da20e088e42553705c024f5f5730281248c2acaf
DIST abseil-cpp-20250127.1.tar.gz 2267282 BLAKE2B 61a6f0340c3883f097c56161d67f0046398513ef716d33a7b26e55e33032262f2e5f02c678318688f7f72a5eea7a88b37abf6d2f84e52626a258c497bea80a83 SHA512 8312acf0ed74fa28c6397f3e41ada656dbd5ca2bf8db484319d74b144ad19c0ebdc77f7f03436be6c6ca1cde706b9055079233cf0d6b5ada4ca48406f8a55dd8
DIST abseil-cpp-20250512.1.tar.gz 2221441 BLAKE2B f84faffcc606b0e4ece3cd8494e6727d74faf74c2900928c317dbce1393a4e3095ecdea4529311323b99459879957841a7300fed0499eba28fc9d764c9ddca40 SHA512 d3ba654ed7dd7b432494918b2de5d8e2b0ad1c42752c5d726f20d6fe2841828fb4e8beb853e3570a11efecef725029ce5ffa3ebc434efff007e7f60735eb9856
DIST abseil-cpp-20250814.1.tar.gz 2235716 BLAKE2B ae29b10f7efb18e20a4c7e4931f20ee169775022cd9ce15c0a23e28a2c3c577d2cf30f60f0890112e45378684485b8b11b101eaf6827faa604e5ef38fb794862 SHA512 7083b73c3cf763f6f7a7edb70a5171f44d27045a0f5e52ca043e0a86379af2c50cf85dbfea30ebaa22a7bb2929452581d26b1ba18945023b057267d4c3bad2f7
-DIST gtest-1b18723e874b256c1e39378c6774a90701d70f7a.tar.gz 833195 BLAKE2B cfeb4fc1569529f8a08557330ab2c88db7703c4f2e8628d18b403f424342ad82b062edb8cc9c0dc122c453235ab327ea742a5ef12e49726e2fa2f60f5ea762d9 SHA512 cb90a54681e0be20a9a8c7a19f960a97cc567931308f4956ee142b86769c062fcf612b9635f5548009ee6d598ae0c1e83692151ec9f1ff1e409b89e158d8b954
-DIST gtest-e68764c147ea0dac1e8811925c531d937396878e.tar.gz 862129 BLAKE2B d6decb9d1ad4e379a76119ec984deaa7649fca033f225698ce421bcee1207b52da3c4fdb2f6d68b968248575704ebe501b7b1d0a02c180901ffa78f9aa47f549 SHA512 aca72b5f64894aeee34cb869bdeda2d25ec04e901fe0e4e8d08d49472de1c9b19a97ba97a2e8570a88be74aea26d1cd526b4e605005a881e1cb6ab03ed3a4ceb
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild
deleted file mode 100644
index a0d429b7ac44..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit cmake python-any-r1
-
-# yes, it needs SOURCE, not just installed one
-# and no, 1.11.0 is not enough
-GTEST_COMMIT="1b18723e874b256c1e39378c6774a90701d70f7a"
-GTEST_FILE="gtest-${GTEST_COMMIT}.tar.gz"
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz
- test? ( https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${GTEST_FILE} )"
-
-LICENSE="
- Apache-2.0
- test? ( BSD )
-"
-SLOT="0/${PV%%.*}"
-KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"
-IUSE="test"
-
-BDEPEND="
- ${PYTHON_DEPS}
- test? ( sys-libs/timezone-data )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-20211102.0-fix-cuda-nvcc-build.patch"
- "${FILESDIR}/${PN}-20211102.0-r2-cuda11.6-compile-fix.patch"
- "${FILESDIR}/${PN}-20211102.0-r2-loong.patch"
- "${FILESDIR}/${PN}-20211102.0-r2-gcc-13.patch"
-)
-
-src_prepare() {
- cmake_src_prepare
-
- # un-hardcode abseil compiler flags
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-
- if use test; then
- sed -i 's/-Werror//g' \
- "${WORKDIR}/googletest-${GTEST_COMMIT}"/googletest/cmake/internal_utils.cmake || die
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- -DABSL_ENABLE_INSTALL=TRUE
- -DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}"
- -DCMAKE_CXX_STANDARD=17
- -DABSL_PROPAGATE_CXX_STD=TRUE
- $(usex test -DBUILD_TESTING=ON '') #intentional usex
- )
- cmake_src_configure
-}
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20220623.1.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20220623.1.ebuild
deleted file mode 100644
index 7aed5f2d2334..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20220623.1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit cmake python-any-r1
-
-# yes, it needs SOURCE, not just installed one
-# and no, 1.11.0 is not enough
-GTEST_COMMIT="e68764c147ea0dac1e8811925c531d937396878e"
-GTEST_FILE="gtest-${GTEST_COMMIT}.tar.gz"
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz
- test? ( https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${GTEST_FILE} )"
-
-LICENSE="
- Apache-2.0
- test? ( BSD )
-"
-SLOT="0/${PV%%.*}"
-KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"
-IUSE="test"
-
-BDEPEND="
- ${PYTHON_DEPS}
- test? ( sys-libs/timezone-data )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-20230125.2-musl-1.2.4.patch #906218
-)
-
-src_prepare() {
- cmake_src_prepare
-
- # un-hardcode abseil compiler flags
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-
- if use test; then
- sed -i 's/-Werror//g' \
- "${WORKDIR}/googletest-${GTEST_COMMIT}"/googletest/cmake/internal_utils.cmake || die
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_CXX_STANDARD=17
- -DABSL_ENABLE_INSTALL=TRUE
- -DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}"
- -DABSL_PROPAGATE_CXX_STD=TRUE
- -DABSL_BUILD_TESTING=$(usex test ON OFF)
- $(usex test -DBUILD_TESTING=ON '') #intentional usex, it used both variables for tests.
- )
- cmake_src_configure
-}
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20230125.3-r5.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20230125.3-r5.ebuild
deleted file mode 100644
index e16880542a7a..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20230125.3-r5.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit cmake-multilib python-any-r1
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io/"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV%%.*}.0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
-IUSE="test"
-
-RDEPEND=">=dev-cpp/gtest-1.13.0[${MULTILIB_USEDEP}]"
-DEPEND="${RDEPEND}"
-BDEPEND="
- ${PYTHON_DEPS}
- test? (
- sys-libs/timezone-data
- )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-20230125.2-musl-1.2.4.patch #906218
- "${FILESDIR}"/${PN}-random-tests.patch #935417
- "${FILESDIR}/${PN}-20230802.0-conditional-use-of-lzcnt.patch" #934337
- "${FILESDIR}/${PN}-include-cstdint.patch" #937307
-)
-
-src_prepare() {
- cmake_src_prepare
-
- # un-hardcode abseil compiler flags
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-}
-
-multilib_src_configure() {
- local mycmakeargs=(
- # We use -std=c++14 here so that abseil-cpp's string_view is used
- # See the discussion in https://github.com/gentoo/gentoo/pull/32281.
- -DCMAKE_CXX_STANDARD=14
- -DABSL_ENABLE_INSTALL=TRUE
- -DABSL_USE_EXTERNAL_GOOGLETEST=ON
- -DABSL_PROPAGATE_CXX_STD=TRUE
- # TEST_HELPERS needed for protobuf (bug #915902)
- -DABSL_BUILD_TEST_HELPERS=ON
- -DABSL_BUILD_TESTING=$(usex test ON OFF)
- $(usex test -DBUILD_TESTING=ON '') # intentional usex, it used both variables for tests.
- )
-
- cmake_src_configure
-}
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20230802.3.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20230802.3.ebuild
deleted file mode 100644
index 1c81b0bb09fb..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20230802.3.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 2020-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit cmake-multilib python-any-r1
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io/"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV:2:4}.$(ver_cut 2).0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86"
-IUSE="test test-helpers"
-
-RDEPEND="
- test-helpers? (
- dev-cpp/gtest:=[${MULTILIB_USEDEP}]
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- ${PYTHON_DEPS}
- test? (
- sys-libs/timezone-data
- )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-20230802.0-sdata-tests.patch"
- "${FILESDIR}/${PN}-random-tests.patch" #935417
- "${FILESDIR}/${PN}-20230802.0-conditional-use-of-lzcnt.patch" #934337
- "${FILESDIR}/${PN}-include-cstdint.patch"
-)
-
-src_prepare() {
- cmake_src_prepare
-
- use ppc && eapply "${FILESDIR}/${PN}-atomic.patch"
-
- # un-hardcode abseil compiler flags
- # 942192
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- -e '/NOMINMAX/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-}
-
-multilib_src_configure() {
- local mycmakeargs=(
- # We use -std=c++14 here so that abseil-cpp's string_view is used
- # See the discussion in https://github.com/gentoo/gentoo/pull/32281.
- -DCMAKE_CXX_STANDARD=14
-
- -DABSL_ENABLE_INSTALL="yes"
- -DABSL_USE_EXTERNAL_GOOGLETEST="yes"
- -DABSL_PROPAGATE_CXX_STD="yes"
-
- # TEST_HELPERS needed for protobuf (bug #915902)
- -DABSL_BUILD_TEST_HELPERS="$(usex test-helpers)"
-
- -DABSL_BUILD_TESTING="$(usex test)"
- )
- # intentional use, it requires both variables for tests.
- # (BUILD_TESTING AND ABSL_BUILD_TESTING)
- if use test; then
- mycmakeargs+=(
- -DBUILD_TESTING="yes"
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- if ! use amd64; then
- CMAKE_SKIP_TESTS=(
- absl_symbolize_test
- )
-
- if use ppc; then
- CMAKE_SKIP_TESTS+=(
- absl_failure_signal_handler_test
- )
- fi
- fi
-
- cmake_src_test
-}
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild
deleted file mode 100644
index ee464962941d..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 2020-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit cmake-multilib python-any-r1
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io/"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV:2:4}.$(ver_cut 2).0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
-IUSE="test test-helpers"
-
-RDEPEND="
- test-helpers? (
- dev-cpp/gtest:=[${MULTILIB_USEDEP}]
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- ${PYTHON_DEPS}
- test? (
- sys-libs/timezone-data
- )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-20230802.0-sdata-tests.patch"
- "${FILESDIR}/${PN}-random-tests.patch" #935417
- "${FILESDIR}/${PN}-20230802.0-conditional-use-of-lzcnt.patch" #934337
- "${FILESDIR}/${PN}-include-cstdint.patch" #937307
-)
-
-src_prepare() {
- cmake_src_prepare
-
- use ppc && eapply "${FILESDIR}/${PN}-atomic.patch"
-
- # un-hardcode abseil compiler flags
- # 942192
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- -e '/NOMINMAX/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-}
-
-multilib_src_configure() {
- local mycmakeargs=(
- # We use -std=c++14 here so that abseil-cpp's string_view is used
- # See the discussion in https://github.com/gentoo/gentoo/pull/32281.
- -DCMAKE_CXX_STANDARD=14
-
- -DABSL_ENABLE_INSTALL="yes"
- -DABSL_USE_EXTERNAL_GOOGLETEST="yes"
- -DABSL_PROPAGATE_CXX_STD="yes"
-
- # TEST_HELPERS needed for protobuf (bug #915902)
- -DABSL_BUILD_TEST_HELPERS="$(usex test-helpers)"
-
- -DABSL_BUILD_TESTING="$(usex test)"
- )
- # intentional use, it requires both variables for tests.
- # (BUILD_TESTING AND ABSL_BUILD_TESTING)
- if use test; then
- mycmakeargs+=(
- -DBUILD_TESTING="yes"
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- if ! use amd64; then
- CMAKE_SKIP_TESTS=(
- absl_symbolize_test
- )
-
- if use ppc; then
- CMAKE_SKIP_TESTS+=(
- absl_failure_signal_handler_test
- )
- fi
- fi
-
- cmake_src_test
-}
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild
deleted file mode 100644
index 0d4464cc4d23..000000000000
--- a/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 2020-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..13} )
-
-inherit cmake-multilib python-any-r1
-
-DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
-HOMEPAGE="https://abseil.io/"
-SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV:2:4}.$(ver_cut 2).0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
-IUSE="test test-helpers"
-
-RDEPEND="
- test? (
- dev-cpp/gtest:=[${MULTILIB_USEDEP}]
- )
- test-helpers? (
- dev-cpp/gtest:=[${MULTILIB_USEDEP}]
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- ${PYTHON_DEPS}
- test? (
- sys-libs/timezone-data
- )
-"
-
-RESTRICT="!test? ( test )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-20230802.0-sdata-tests.patch"
- "${FILESDIR}/${PN}-include-cstdint.patch" #937307
- "${FILESDIR}/${PN}-20240722.0-lto-odr.patch"
-)
-
-src_prepare() {
- cmake_src_prepare
-
- use ppc && eapply "${FILESDIR}/${PN}-atomic.patch"
-
- # un-hardcode abseil compiler flags
- # 942192
- sed -i \
- -e '/"-maes",/d' \
- -e '/"-msse4.1",/d' \
- -e '/"-mfpu=neon"/d' \
- -e '/"-march=armv8-a+crypto"/d' \
- -e '/NOMINMAX/d' \
- absl/copts/copts.py || die
-
- # now generate cmake files
- python_fix_shebang absl/copts/generate_copts.py
- absl/copts/generate_copts.py || die
-}
-
-multilib_src_configure() {
- local mycmakeargs=(
- -DCMAKE_CXX_STANDARD=17
- -DABSL_ENABLE_INSTALL="yes"
- -DABSL_USE_EXTERNAL_GOOGLETEST="yes"
- -DABSL_PROPAGATE_CXX_STD="yes"
-
- # TEST_HELPERS needed for protobuf (bug #915902)
- -DABSL_BUILD_TEST_HELPERS="$(usex test-helpers)"
-
- -DABSL_BUILD_TESTING="$(usex test)"
- )
- # intentional use, it requires both variables for tests.
- # (BUILD_TESTING AND ABSL_BUILD_TESTING)
- if use test; then
- mycmakeargs+=(
- -DBUILD_TESTING="yes"
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_test() {
- if ! use amd64; then
- CMAKE_SKIP_TESTS=(
- absl_symbolize_test
- )
-
- if use ppc; then
- CMAKE_SKIP_TESTS+=(
- absl_failure_signal_handler_test
- )
- fi
- fi
-
- cmake_src_test
-}