media-libs/opencv: add USE=+features2d
authorStefan Strogin <steils@gentoo.org>
Sat, 30 Nov 2019 04:01:15 +0000 (06:01 +0200)
committerAmy Liffey <amynka@gentoo.org>
Sat, 30 Nov 2019 19:47:39 +0000 (20:47 +0100)
USE=contribxfeatures2d should not control building features2d module.
Add USE=+features2d instead.

Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Stefan Strogin <steils@gentoo.org>
Signed-off-by: Amy Liffey <amynka@gentoo.org>
media-libs/opencv/metadata.xml
media-libs/opencv/opencv-4.1.2-r1.ebuild

index fa1de56873ebbd93706b04845ba9d2ad53f554a3..f7bccfa408e7381b556c1807c8765ea093c56e43 100644 (file)
@@ -15,6 +15,7 @@ Face Recognition; Gesture Recognition; Motion Tracking, Ego Motion, Motion Under
                <flag name="cuda">Enable NVIDIA Cuda computations support (Experimental!)</flag>
                <flag restrict="&gt;=media-libs/opencv-4.1.2" name="download">Enable download during cmake configure</flag>
                <flag name="eigen">Enable usage of <pkg>dev-cpp/eigen</pkg> for computations</flag>
+               <flag name="features2d">Enable features2d module</flag>
                <flag name="gdal">Enable support for sci-libs/gdal library</flag>
                <flag restrict="&gt;=media-libs/opencv-4.1.2" name="opencvapps">Enable compilation with opencvapps</flag>
                <flag restrict="&gt;=media-libs/opencv-3.1.0" name="gflags">Use Google's C++ argument parsing library</flag>
index 9b2a7e66419a7441bb81208178b3c56510e0e468..b897cdd744add198007ecab8f8683521e96b08ee 100644 (file)
@@ -21,7 +21,7 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
 LICENSE="BSD"
 SLOT="0/4.1.2" # subslot = libopencv* soname version
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux"
-IUSE="contrib contribcvv contribdnn contribhdf contribsfm contribxfeatures2d cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_popcnt cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cuda debug dnnsamples -download +eigen examples ffmpeg gdal gflags glog gphoto2 gstreamer gtk ieee1394 jpeg jpeg2k lapack libav opencl openexr opengl openmp opencvapps pch png +python qt5 tesseract testprograms threads tiff vaapi v4l vtk webp xine"
+IUSE="contrib contribcvv contribdnn contribhdf contribsfm contribxfeatures2d cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_popcnt cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cuda debug dnnsamples -download +eigen examples +features2d ffmpeg gdal gflags glog gphoto2 gstreamer gtk ieee1394 jpeg jpeg2k lapack libav opencl openexr opengl openmp opencvapps pch png +python qt5 tesseract testprograms threads tiff vaapi v4l vtk webp xine"
 # OpenGL needs gtk or Qt installed to activate, otherwise build system
 # will silently disable it Wwithout the user knowing, which defeats the
 # purpose of the opengl use flag.
@@ -410,7 +410,7 @@ multilib_src_configure() {
                -DOPENCV_CPU_OPT_IMPLIES_IGNORE=ON
                -DCPU_BASELINE=$(printf "%s," "${cpu_flags[@]}")
                -DCPU_DISPATCH=
-               -DBUILD_opencv_features2d=$(usex contribxfeatures2d)
+               -DBUILD_opencv_features2d=$(usex features2d ON OFF)
        )
 
        # ===================================================