44
55EAPI=" 5"
66
7- inherit cmake-utils git-2 multilib python
8-
7+ PYTHON_COMPAT=( python{2_7,3_4} )
8+ inherit cmake-utils git-2 multilib python-r1
99
1010DESCRIPTION=" Core library for accessing the Microsoft Kinect."
1111HOMEPAGE=" https://github.com/OpenKinect/${PN} "
@@ -14,24 +14,26 @@ EGIT_REPO_URI="git://github.com/OpenKinect/${PN}.git"
1414LICENSE=" Apache-2.0 GPL-2"
1515SLOT=" 0"
1616KEYWORDS=" "
17- IUSE=" bindist +c_sync +cpp doc examples fakenect opencv openni2 python"
18-
19- PYTHON_DEPEND=" !bindist? 2"
17+ IUSE=" bindist +c_sync +cpp doc examples fakenect opencv openni2"
2018
2119COMMON_DEP=" virtual/libusb:1
2220 examples? ( media-libs/freeglut
2321 virtual/opengl
2422 x11-libs/libXi
2523 x11-libs/libXmu )
2624 opencv? ( media-libs/opencv )
27- python? ( dev-python/numpy )"
25+ ${PYTHON_DEPS}
26+ python_targets_python2_7? ( dev-python/numpy )
27+ python_targets_python3_4? ( dev-python/numpy )"
2828
2929RDEPEND=" ${COMMON_DEP} "
3030DEPEND=" ${COMMON_DEP}
3131 dev-util/cmake
3232 virtual/pkgconfig
33+ !bindist? ( dev-lang/python:2 )
3334 doc? ( app-doc/doxygen )
34- python? ( dev-python/cython )"
35+ python_targets_python2_7? ( dev-python/cython )
36+ python_targets_python3_4? ( dev-python/cython )"
3537
3638
3739src_configure () {
@@ -43,7 +45,8 @@ src_configure() {
4345 $( cmake-utils_use_build fakenect FAKENECT)
4446 $( cmake-utils_use_build opencv CV)
4547 $( cmake-utils_use_build openni2 OPENNI2_DRIVER)
46- $( cmake-utils_use_build python PYTHON)
48+ $( cmake-utils_use_build python_targets_python2_7 PYTHON2)
49+ $( cmake-utils_use_build python_targets_python3_4 PYTHON3)
4750 )
4851 cmake-utils_src_configure
4952}
0 commit comments