1 |
commit: 18ba8e8a0e09ab901aba054af8f8d2743227febf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 10 09:54:33 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 11 13:20:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ba8e8a |
7 |
|
8 |
media-libs/opencv: Fix automagic dep on tesseract |
9 |
|
10 |
media-libs/opencv/opencv-3.1.0-r8.ebuild | 10 ++++++++++ |
11 |
media-libs/opencv/opencv-3.2.0-r3.ebuild | 10 ++++++++++ |
12 |
2 files changed, 20 insertions(+) |
13 |
|
14 |
diff --git a/media-libs/opencv/opencv-3.1.0-r8.ebuild b/media-libs/opencv/opencv-3.1.0-r8.ebuild |
15 |
index a4f6ffd7f96..75af0b42c87 100644 |
16 |
--- a/media-libs/opencv/opencv-3.1.0-r8.ebuild |
17 |
+++ b/media-libs/opencv/opencv-3.1.0-r8.ebuild |
18 |
@@ -244,6 +244,16 @@ multilib_src_configure() { |
19 |
-DBUILD_opencv_hdf=$(multilib_native_usex contrib_hdf ON OFF) |
20 |
-DBUILD_opencv_sfm=$(usex contrib_sfm ON OFF) |
21 |
) |
22 |
+ |
23 |
+ if multilib_is_native_abi; then |
24 |
+ GLOBALCMAKEARGS+=( |
25 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=$(usex !tesseract) |
26 |
+ ) |
27 |
+ else |
28 |
+ GLOBALCMAKEARGS+=( |
29 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=ON |
30 |
+ ) |
31 |
+ fi |
32 |
fi |
33 |
|
34 |
# workaround for bug 413429 |
35 |
|
36 |
diff --git a/media-libs/opencv/opencv-3.2.0-r3.ebuild b/media-libs/opencv/opencv-3.2.0-r3.ebuild |
37 |
index ea277d363e9..57e9db2784e 100644 |
38 |
--- a/media-libs/opencv/opencv-3.2.0-r3.ebuild |
39 |
+++ b/media-libs/opencv/opencv-3.2.0-r3.ebuild |
40 |
@@ -286,6 +286,16 @@ multilib_src_configure() { |
41 |
-DBUILD_opencv_hdf=$(multilib_native_usex contrib_hdf ON OFF) |
42 |
-DBUILD_opencv_sfm=$(usex contrib_sfm ON OFF) |
43 |
) |
44 |
+ |
45 |
+ if multilib_is_native_abi; then |
46 |
+ GLOBALCMAKEARGS+=( |
47 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=$(usex !tesseract) |
48 |
+ ) |
49 |
+ else |
50 |
+ GLOBALCMAKEARGS+=( |
51 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=ON |
52 |
+ ) |
53 |
+ fi |
54 |
fi |
55 |
|
56 |
# workaround for bug 413429 |