media-libs/opencv: Fix automagic dep on tesseract
authorMichał Górny <mgorny@gentoo.org>
Thu, 10 Aug 2017 09:54:33 +0000 (11:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 11 Aug 2017 13:20:50 +0000 (15:20 +0200)
media-libs/opencv/opencv-3.1.0-r8.ebuild
media-libs/opencv/opencv-3.2.0-r3.ebuild

index a4f6ffd7f9611b388e7812d360e05a12d3feab45..75af0b42c8789b5ae6afaeea24c1265c5b75aa45 100644 (file)
@@ -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
index ea277d363e95a14c73037b2cd28842f7893e19e8..57e9db2784edea0290310b87fa6721facb4b34d1 100644 (file)
@@ -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