net-libs/grpc: 1.71.0 conditionally apply gtest patch

Patch depends on replacing the included libs from gtest/abseil-cpp. And breaks
without USE=test.

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2025-04-11 12:38:25 +02:00
committed by Sam James
parent ef66c4d439
commit ef8d2693b1

View File

@@ -73,7 +73,6 @@ BDEPEND="
"
PATCHES=(
"${FILESDIR}/${PN}-1.71.0-fix-already-registered.patch"
"${FILESDIR}/${PN}-1.71.0-system-gtest.patch"
)
@@ -173,6 +172,9 @@ src_prepare() {
# Respect EPYTHON when testing, don't touch installed files otherwise
python_fix_shebang --force "${S}"
# NOTE doesn't apply if we don't replace gtest/abseil libs
eapply "${FILESDIR}/${PN}-1.71.0-fix-already-registered.patch"
fi
# Called via system() by some of the C++ sources, respect EPYTHON