sci-libs/volk: fix incorrect circular deps

Also allow FEATURES="test" and don't install files which are only needed
for testing.
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Fixes: https://bugs.gentoo.org/886593
This commit is contained in:
Rick Farina
2023-08-03 14:57:57 -04:00
parent d47c4cddd0
commit e357a38f91
@@ -20,13 +20,11 @@ IUSE="orc test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
net-wireless/gnuradio
dev-libs/boost:=
orc? ( dev-lang/orc )"
DEPEND="${RDEPEND}
$(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}]')"
RESTRICT="test"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
@@ -43,5 +41,17 @@ src_install() {
# Remove stray python files generated by the build system
find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
# https://github.com/gnuradio/volk/issues/626
rm -f "${ED}/usr/bin/list_cpu_features"
rm -rf "${ED}/usr/include/cpu_features"
rm -rf "${ED}/usr/$(get_libdir)/cmake/CpuFeatures"
rm -rf "${ED}/usr/lib64/libcpu_features.a"
python_optimize
}
src_test() {
local myctestargs=(
-E "(check_lgpl)"
)
cmake_src_test
}