diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-08-10 11:54:33 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-11 15:20:50 +0200 |
commit | 18ba8e8a0e09ab901aba054af8f8d2743227febf (patch) | |
tree | 99dfa5a9d95ef3cb280985abba0077e64d6fc176 /media-libs/opencv | |
parent | media-libs/opencv: Enable multilib builds for 3.1.0 & 3.2.0 (diff) | |
download | gentoo-18ba8e8a0e09ab901aba054af8f8d2743227febf.tar.gz gentoo-18ba8e8a0e09ab901aba054af8f8d2743227febf.tar.bz2 gentoo-18ba8e8a0e09ab901aba054af8f8d2743227febf.zip |
media-libs/opencv: Fix automagic dep on tesseract
Diffstat (limited to 'media-libs/opencv')
-rw-r--r-- | media-libs/opencv/opencv-3.1.0-r8.ebuild | 10 | ||||
-rw-r--r-- | media-libs/opencv/opencv-3.2.0-r3.ebuild | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/opencv/opencv-3.1.0-r8.ebuild b/media-libs/opencv/opencv-3.1.0-r8.ebuild index a4f6ffd7f961..75af0b42c878 100644 --- a/media-libs/opencv/opencv-3.1.0-r8.ebuild +++ b/media-libs/opencv/opencv-3.1.0-r8.ebuild @@ -244,6 +244,16 @@ multilib_src_configure() { -DBUILD_opencv_hdf=$(multilib_native_usex contrib_hdf ON OFF) -DBUILD_opencv_sfm=$(usex contrib_sfm ON OFF) ) + + if multilib_is_native_abi; then + GLOBALCMAKEARGS+=( + -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=$(usex !tesseract) + ) + else + GLOBALCMAKEARGS+=( + -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=ON + ) + fi fi # workaround for bug 413429 diff --git a/media-libs/opencv/opencv-3.2.0-r3.ebuild b/media-libs/opencv/opencv-3.2.0-r3.ebuild index ea277d363e95..57e9db2784ed 100644 --- a/media-libs/opencv/opencv-3.2.0-r3.ebuild +++ b/media-libs/opencv/opencv-3.2.0-r3.ebuild @@ -286,6 +286,16 @@ multilib_src_configure() { -DBUILD_opencv_hdf=$(multilib_native_usex contrib_hdf ON OFF) -DBUILD_opencv_sfm=$(usex contrib_sfm ON OFF) ) + + if multilib_is_native_abi; then + GLOBALCMAKEARGS+=( + -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=$(usex !tesseract) + ) + else + GLOBALCMAKEARGS+=( + -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=ON + ) + fi fi # workaround for bug 413429 |