commit:     118a0104ca9c4a75c1caf1b2c9eff1e7f9d7b02d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 14 08:34:27 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Sep 14 09:18:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=118a0104

media-libs/opencv: Fix IUSE=examples

Closes: https://bugs.gentoo.org/830163
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/opencv-4.6.0-fix-build-examples.patch     | 21 +++++++++++++++++++++
 media-libs/opencv/opencv-4.6.0-r2.ebuild            |  1 +
 2 files changed, 22 insertions(+)

diff --git a/media-libs/opencv/files/opencv-4.6.0-fix-build-examples.patch 
b/media-libs/opencv/files/opencv-4.6.0-fix-build-examples.patch
new file mode 100644
index 000000000000..3cc6328a2323
--- /dev/null
+++ b/media-libs/opencv/files/opencv-4.6.0-fix-build-examples.patch
@@ -0,0 +1,21 @@
+From 5acf351e4b9d099d446f401df690d559ed5dfdad Mon Sep 17 00:00:00 2001
+From: Prasanth R <[email protected]>
+Date: Thu, 14 Jul 2022 13:34:54 +0530
+Subject: [PATCH] #21804 Add opencv_gapi as dep to samples/cpp
+
+---
+ samples/cpp/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt
+index c9c4440f22c7..f23b333ca93a 100644
+--- a/samples/cpp/CMakeLists.txt
++++ b/samples/cpp/CMakeLists.txt
+@@ -15,6 +15,7 @@ set(OPENCV_CPP_SAMPLES_REQUIRED_DEPS
+   opencv_calib3d
+   opencv_stitching
+   opencv_dnn
++  opencv_gapi
+   ${OPENCV_MODULES_PUBLIC}
+   ${OpenCV_LIB_COMPONENTS})
+ ocv_check_dependencies(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})

diff --git a/media-libs/opencv/opencv-4.6.0-r2.ebuild 
b/media-libs/opencv/opencv-4.6.0-r2.ebuild
index 49f04357d294..8cca419b41eb 100644
--- a/media-libs/opencv/opencv-4.6.0-r2.ebuild
+++ b/media-libs/opencv/opencv-4.6.0-r2.ebuild
@@ -290,6 +290,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.1.2-opencl-license.patch
        "${FILESDIR}"/${PN}-4.4.0-disable-native-cpuflag-detect.patch
        "${FILESDIR}"/${PN}-4.5.0-link-with-cblas-for-lapack.patch
+       "${FILESDIR}"/${P}-fix-build-examples.patch # bug 830163, pending 
upstream PR #22245
 )
 
 pkg_pretend() {

Reply via email to