Skip to content

Commit f5f69d5

Browse files
committed
portage: Migrate to python-r1
Signed-off-by: Benn Snyder <[email protected]>
1 parent ab10610 commit f5f69d5

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
EBUILD libfreenect-9999.ebuild 2052 SHA256 cc490bd4f5c593d6cbee2c3e878389b85930893402c284f6d5c181ba5664f2e0 SHA512 a62f206923766eb6f468edbebff6109cdd77b1a7a4a80d8c0825d93ae9b7f881a3f15ec7fac0d4916b995150820ca1a7ac6ed1a625a47289632db3f95720be8d WHIRLPOOL 197fec2ca649a664fd02cdde6d704962e51d4970907cbf1092171646612bf5e34a6eae0784b23dc608b3c4438cecd261a8cd78528d695c18bb53fc7c0577d642
1+
EBUILD libfreenect-9999.ebuild 2359 SHA256 b25fdff70c83f5bcbdb02cf7ffbd8c38cfbc7da6997c7cb8638618b569b018d4 SHA512 fc83b46992caec58e6bcf60cbb52efc0c04926856e85f51b19b59cf0fc7164cc9ff579c69b892c2e27eea49a12b286a0c55065f98648b665bb471a7f9d5a3d9c WHIRLPOOL afb3b10c8e1bfd51516f157c9e814e1a656810d643392b59ee22f421088f0a3644a76f243f1f3c66b9129ef5c8909a04153586011b80f17ab54fc466d164522b

platform/linux/portage/dev-libs/libfreenect/libfreenect-9999.ebuild

+11-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
EAPI="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

1010
DESCRIPTION="Core library for accessing the Microsoft Kinect."
1111
HOMEPAGE="https://github.com/OpenKinect/${PN}"
@@ -14,24 +14,26 @@ EGIT_REPO_URI="git://github.com/OpenKinect/${PN}.git"
1414
LICENSE="Apache-2.0 GPL-2"
1515
SLOT="0"
1616
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"
2018

2119
COMMON_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

2929
RDEPEND="${COMMON_DEP}"
3030
DEPEND="${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

3739
src_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

Comments
 (0)