4
4
5
5
EAPI=" 5"
6
6
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
9
9
10
10
DESCRIPTION=" Core library for accessing the Microsoft Kinect."
11
11
HOMEPAGE=" https://github.com/OpenKinect/${PN} "
@@ -14,24 +14,26 @@ EGIT_REPO_URI="git://github.com/OpenKinect/${PN}.git"
14
14
LICENSE=" Apache-2.0 GPL-2"
15
15
SLOT=" 0"
16
16
KEYWORDS=" "
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"
20
18
21
19
COMMON_DEP=" virtual/libusb:1
22
20
examples? ( media-libs/freeglut
23
21
virtual/opengl
24
22
x11-libs/libXi
25
23
x11-libs/libXmu )
26
24
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 )"
28
28
29
29
RDEPEND=" ${COMMON_DEP} "
30
30
DEPEND=" ${COMMON_DEP}
31
31
dev-util/cmake
32
32
virtual/pkgconfig
33
+ !bindist? ( dev-lang/python:2 )
33
34
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 )"
35
37
36
38
37
39
src_configure () {
@@ -43,7 +45,8 @@ src_configure() {
43
45
$( cmake-utils_use_build fakenect FAKENECT)
44
46
$( cmake-utils_use_build opencv CV)
45
47
$( 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)
47
50
)
48
51
cmake-utils_src_configure
49
52
}
0 commit comments