When make.conf has: CMAKE_BUILD_TYPE=ninja opencv fails to build due to calling emake directly (instead of cmake-utils_src_make). Please either update the ebuild to be make-agnostic, or force CMAKE_BUILD_TYPE to emake.
Created attachment 455738 [details] media-libs:opencv-3.1.0-r6:20161210-083855.log
Also, that python support code is awful. It kills all the upstream Python parts (including useful ones like obtaining info from Python interp) and instead forces some random hardcoded hackery in the ebuild.
(In reply to Michał Górny from comment #2) > Also, that python support code is awful. It kills all the upstream Python > parts (including useful ones like obtaining info from Python interp) and > instead forces some random hardcoded hackery in the ebuild. Patches are welcome :)
s/BUILD_TYPE/MAKEFILE_GENERATOR/ ofc.
commit b11a2969d70e10f2d44c6d6f264a6d8df19fcb9c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Sat Dec 10 17:34:09 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Sat Dec 10 22:25:08 2016 media-libs/opencv: Kill redundant 'emake clean' - fix ninja, #602232 Kill the call to 'emake clean' for Python build directory which obviously does not work when Ninja is used instead of Makefiles. It is completely redundant since it is followed by 'rm -rf' of the whole directory (tested with Makefiles and Ninja).