1 |
commit: 6a7affbd5b76ff483e6c8de31c090dab1509a239 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 04:49:25 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 04:51:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a7affbd |
7 |
|
8 |
dev-libs/libcec: fix python libdir install #577612 |
9 |
|
10 |
dev-libs/libcec/libcec-3.0.1.ebuild | 17 ++++++++++++----- |
11 |
1 file changed, 12 insertions(+), 5 deletions(-) |
12 |
|
13 |
diff --git a/dev-libs/libcec/libcec-3.0.1.ebuild b/dev-libs/libcec/libcec-3.0.1.ebuild |
14 |
index 0c343ba..8a53575 100644 |
15 |
--- a/dev-libs/libcec/libcec-3.0.1.ebuild |
16 |
+++ b/dev-libs/libcec/libcec-3.0.1.ebuild |
17 |
@@ -1,8 +1,9 @@ |
18 |
-# Copyright 1999-2015 Gentoo Foundation |
19 |
+# Copyright 1999-2016 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Id$ |
22 |
|
23 |
-EAPI=5 |
24 |
+EAPI="5" |
25 |
+ |
26 |
PYTHON_COMPAT=( python2_7 python3_4 ) |
27 |
|
28 |
inherit cmake-utils eutils linux-info python-single-r1 |
29 |
@@ -10,10 +11,10 @@ inherit cmake-utils eutils linux-info python-single-r1 |
30 |
DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor" |
31 |
HOMEPAGE="http://libcec.pulse-eight.com" |
32 |
SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz" |
33 |
+ |
34 |
LICENSE="GPL-2" |
35 |
SLOT="0" |
36 |
-KEYWORDS="~arm ~amd64 ~x86" |
37 |
- |
38 |
+KEYWORDS="~amd64 ~arm ~x86" |
39 |
IUSE="cubox exynos python raspberry-pi +xrandr" |
40 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
41 |
|
42 |
@@ -39,6 +40,11 @@ pkg_setup() { |
43 |
} |
44 |
|
45 |
src_prepare() { |
46 |
+ # Do not hardcode the python libpath #577612 |
47 |
+ sed -i \ |
48 |
+ -e '/DESTINATION/s:lib/python${PYTHON_VERSION}/dist-packages:${PYTHON_SITEDIR}:' \ |
49 |
+ src/libcec/cmake/CheckPlatformSupport.cmake || die |
50 |
+ |
51 |
cmake-utils_src_prepare |
52 |
use python || comment_add_subdirectory "src/pyCecClient" |
53 |
} |
54 |
@@ -46,9 +52,10 @@ src_prepare() { |
55 |
src_configure() { |
56 |
local mycmakeargs=( |
57 |
$(cmake-utils_useno python SKIP_PYTHON_WRAPPER) |
58 |
- $(cmake-utils_use_has exynos EXYNOS_API) \ |
59 |
+ $(cmake-utils_use_has exynos EXYNOS_API) |
60 |
$(cmake-utils_use_has cubox TDA955X_API) |
61 |
$(cmake-utils_use_has raspberry-pi RPI_API) |
62 |
) |
63 |
+ use python && mycmakeargs+=( -DPYTHON_SITEDIR="$(python_get_sitedir)" ) |
64 |
cmake-utils_src_configure |
65 |
} |