dev-python/ahocorasick: fix build with < gcc-15

Closes: https://bugs.gentoo.org/945171
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2024-11-28 10:55:00 +01:00
parent b273b8ad3b
commit 3eb1fbaf19

View File

@@ -23,5 +23,7 @@ distutils_enable_tests pytest
src_prepare() {
default
sed -i '/typedef char bool/d' src/common.h || die
if tc-is-gcc && ver_test $(gcc-version) -ge 15 ; then
sed -i '/typedef char bool/d' src/common.h || die
fi
}