Created attachment 417368 [details] corrected ebuild Newer versions of nvcc and gcc play together nicely.
(Attachment 417368 [details] has the media-libs/opencv-3.0.0.ebuild with the lines around the "ewarn" commented out.) Currently, all versions of nvidia-cuda-toolkit in tree support gcc-4.8 but only nvidia-cuda-toolkit-7.5.18 supports >=gcc-4.9. Therefore I think it is safe to make open-3.0.0.ebuild also accept gcc-4.8 if the dependency on nvidia-cuda-toolkit is updated. It is likely not safe to remove the gcc version detection logic completely because users might have nvidia-cuda-toolkit-6.5.14, gcc-4.8.4 and gcc-4.9.3 installed and try to install opencv while gcc-4.9.3 is selected.
author Amy Winston <amynka@gentoo.org> 2015-11-26 21:10:58 (GMT) committer Amy Winston <amynka@gentoo.org> 2015-11-26 21:11:56 (GMT) commit 7bbdf13eaf0d8b6da619fa15581d1ba56c1cc072 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bbdf13eaf0d8b6da619fa15581d1ba56c1cc072 Thanks.