diff options
| author | Paul Zander <negril.nx+gentoo@gmail.com> | 2025-04-05 14:22:34 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-04-11 10:47:05 +0100 |
| commit | 34d0dfc22c5fe3a2ac998652053ecd3af9ffca70 (patch) | |
| tree | ae2f23684bdc6f00e548eb9617eaca0b111cf08f /dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild | |
| parent | 1b669a29ef55776395b007ee74bf10c97353e013 (diff) | |
| download | gentoo-34d0dfc22c5fe3a2ac998652053ecd3af9ffca70.tar.gz gentoo-34d0dfc22c5fe3a2ac998652053ecd3af9ffca70.tar.bz2 gentoo-34d0dfc22c5fe3a2ac998652053ecd3af9ffca70.zip | |
dev-cpp/abseil-cpp: add USE=test-helpers
USE=test-helpers builds libraries required to build tests against Abseil code.
Closes: https://bugs.gentoo.org/953140
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild')
| -rw-r--r-- | dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild index 9f5cd6299aed..e99a4b190279 100644 --- a/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild +++ b/dev-cpp/abseil-cpp/abseil-cpp-20240116.3.ebuild @@ -14,10 +14,10 @@ SRC_URI="https://github.com/abseil/abseil-cpp/archive/${PV}.tar.gz -> ${P}.tar.g 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" +IUSE="test test-helpers" RDEPEND=" - test? ( + test-helpers? ( dev-cpp/gtest:=[${MULTILIB_USEDEP}] ) " @@ -45,6 +45,7 @@ src_prepare() { use ppc && eapply "${FILESDIR}/${PN}-atomic.patch" # un-hardcode abseil compiler flags + # 942192 sed -i \ -e '/"-maes",/d' \ -e '/"-msse4.1",/d' \ @@ -63,14 +64,18 @@ multilib_src_configure() { # 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 + + -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)" + -DABSL_BUILD_TEST_HELPERS="$(usex test-helpers)" + -DABSL_BUILD_TESTING="$(usex test)" ) - # intentional use, it uses both variables for tests. + # intentional use, it requires both variables for tests. + # (BUILD_TESTING AND ABSL_BUILD_TESTING) if use test; then mycmakeargs+=( -DBUILD_TESTING="yes" |
