diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2024-06-27 14:17:57 +0000 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-06-27 18:49:09 +0200 |
commit | b1edf3190b14911cb69fb784b91ca1c80355e971 (patch) | |
tree | 830b570aa52567ffe307644f9e41164e4505f297 /sci-libs | |
parent | dev-util/github-cli: add 2.52.0 (diff) | |
download | gentoo-b1edf3190b14911cb69fb784b91ca1c80355e971.tar.gz gentoo-b1edf3190b14911cb69fb784b91ca1c80355e971.tar.bz2 gentoo-b1edf3190b14911cb69fb784b91ca1c80355e971.zip |
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>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/rpp/rpp-6.1.1.ebuild | 10 |
1 files 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() { |