summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-09-14 10:34:27 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-09-14 11:18:59 +0200
commit118a0104ca9c4a75c1caf1b2c9eff1e7f9d7b02d (patch)
tree4d6f542fcb340d146de4b5a0403d0910460e29b3 /media-libs/opencv
parentsci-astronomy/wcslib: add 7.12 (diff)
downloadgentoo-118a0104ca9c4a75c1caf1b2c9eff1e7f9d7b02d.tar.gz
gentoo-118a0104ca9c4a75c1caf1b2c9eff1e7f9d7b02d.tar.bz2
gentoo-118a0104ca9c4a75c1caf1b2c9eff1e7f9d7b02d.zip
media-libs/opencv: Fix IUSE=examples
Closes: https://bugs.gentoo.org/830163 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/opencv')
-rw-r--r--media-libs/opencv/files/opencv-4.6.0-fix-build-examples.patch21
-rw-r--r--media-libs/opencv/opencv-4.6.0-r2.ebuild1
2 files changed, 22 insertions, 0 deletions
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 <prasanth.r@timesys.com>
+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() {