sci-libs/rpp: fix compilation with USE=test

* fixes "patch -p1 failed with rpp-6.1.1-skip-install-license.patch"
* tests require opencv

Closes: https://bugs.gentoo.org/934981
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37322
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Sv. Lockal
2024-06-27 14:17:57 +00:00
committed by Andrew Ammerlaan
parent 28a0aecf98
commit b1edf3190b

View File

@@ -29,7 +29,10 @@ DEPEND="${RDEPEND}"
BDEPEND="
>=dev-build/cmake-3.22
>=dev-libs/half-1.12.0-r1
test? ( dev-cpp/gtest )
test? (
dev-cpp/gtest
media-libs/opencv:=
)
"
IUSE="cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_f16c test"
@@ -54,7 +57,10 @@ src_prepare() {
-i CMakeLists.txt || die
cmake_src_prepare
use test && rcc_test_wrapper cmake_src_prepare
if use test; then
local PATCHES=()
rcc_test_wrapper cmake_src_prepare
fi
}
src_configure() {