media-libs/opencv: Kill unnecessary Gentoo hack-patch for Python
authorMichał Górny <mgorny@gentoo.org>
Sat, 10 Dec 2016 16:05:59 +0000 (17:05 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 10 Dec 2016 21:25:06 +0000 (22:25 +0100)
commit203575101ce6db10db3d28fd21cbb899dd7e864a
tree65f382f300da1eeb3b4da0636e869b82ecf74698
parentc62ad71c66992a8f41657f1a8f19acf87845955b
media-libs/opencv: Kill unnecessary Gentoo hack-patch for Python

Kill the unnecessary, outdated custom Gentoo CMake module used to force
specific version of Python in favor of hacking the upstream module
appropriately. Rely on the standard CMake -DPYTHON_INTERPRETER to
(indirectly) disable Python for the base build, and on python-r1 +
upstream -DPYTHON3_INTERPRETER to control the implementation used for
Python module build.

This removes a lot of unnecessary hackery from the ebuild, such as
passing all the Python implementation specifics (include paths, library
names) in favor of using the CMake autodetection code. It also restores
some missing bits that were omitted because of the Gentoo module
deficiency.

To keep things simple, all versions of Python are treated as 'python2'
upstream since the code used to build both python2 & python3 modules is
identical (i.e. works for all versions).
media-libs/opencv/opencv-3.1.0-r7.ebuild [new file with mode: 0644]