commit:     b1edf3190b14911cb69fb784b91ca1c80355e971
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Thu Jun 27 14:17:57 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 16:49:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1edf319

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 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37322
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/rpp/rpp-6.1.1.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sci-libs/rpp/rpp-6.1.1.ebuild b/sci-libs/rpp/rpp-6.1.1.ebuild
index d38645f9ff56..dc7d12f41604 100644
--- a/sci-libs/rpp/rpp-6.1.1.ebuild
+++ b/sci-libs/rpp/rpp-6.1.1.ebuild
@@ -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() {

Reply via email to