FindPythonLibs.cmake should use currently active Python version (usually shown in the output of `eselect python show`) instead of checking hard-coded list of Python versions. This suggested change also obsoletes "python3" USE flag and cmake-python-3.patch.
Created attachment 205720 [details, diff] cmake-FindPythonLibs.patch The new version of cmake-FindPythonLibs.patch. Python static libraries are no longer placed in /usr/lib/pythonX.Y/config directories, so the second hunk is no longer needed.
Upstream reported?
Created attachment 205722 [details, diff] cmake-2.6.4-r3.ebuild.patch
Fixed.