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-20240722.1.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-20240722.1.ebuild')
| -rw-r--r-- | dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild index 980635fdd36e..420b0a925935 100644 --- a/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.ebuild +++ b/dev-cpp/abseil-cpp/abseil-cpp-20240722.1.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 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" -IUSE="test" +IUSE="test test-helpers" RDEPEND=" - test? ( + test-helpers? ( dev-cpp/gtest:=[${MULTILIB_USEDEP}] ) " @@ -44,6 +44,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' \ @@ -59,14 +60,17 @@ src_prepare() { multilib_src_configure() { local mycmakeargs=( - -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" |
