1 |
commit: 012e9e12edca0a75c2defefac6e444e2b4ebc665 |
2 |
Author: Anthony Ryan <anthonyryan1 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Oct 22 22:26:09 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 26 21:11:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=012e9e12 |
7 |
|
8 |
dev-libs/libcec: various fixes. |
9 |
|
10 |
This commit: |
11 |
* bumps to EAPI=6. |
12 |
* fixes improper linux-info check. |
13 |
* cleans up cmake configure blocks. |
14 |
* adds post-install note about uutp. |
15 |
* adds missing version dependency on libplatform >= 2. |
16 |
|
17 |
Gentoo-Bug: https://bugs.gentoo.org/588926 |
18 |
Gentoo-Bug: https://bugs.gentoo.org/597834 |
19 |
|
20 |
Closes: https://github.com/gentoo/gentoo/pull/2641 |
21 |
|
22 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
23 |
|
24 |
dev-libs/libcec/libcec-3.1.0-r1.ebuild | 79 ++++++++++++++++++++++++++++++++++ |
25 |
1 file changed, 79 insertions(+) |
26 |
|
27 |
diff --git a/dev-libs/libcec/libcec-3.1.0-r1.ebuild b/dev-libs/libcec/libcec-3.1.0-r1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..dee8065 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libcec/libcec-3.1.0-r1.ebuild |
32 |
@@ -0,0 +1,79 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
40 |
+ |
41 |
+inherit cmake-utils linux-info python-single-r1 toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor" |
44 |
+HOMEPAGE="http://libcec.pulse-eight.com" |
45 |
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~x86" |
50 |
+IUSE="cubox exynos python raspberry-pi +xrandr" |
51 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
52 |
+ |
53 |
+RDEPEND="virtual/udev |
54 |
+ >=dev-libs/libplatform-2.0.0 |
55 |
+ raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
56 |
+ xrandr? ( x11-libs/libXrandr ) |
57 |
+ python? ( ${PYTHON_DEPS} )" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ python? ( dev-lang/swig ) |
60 |
+ virtual/pkgconfig" |
61 |
+ |
62 |
+CONFIG_CHECK="~USB_ACM" |
63 |
+ |
64 |
+S="${WORKDIR}/${PN}-${P}" |
65 |
+ |
66 |
+pkg_pretend() { |
67 |
+ linux-info_pkg_setup |
68 |
+} |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ linux-info_pkg_setup |
72 |
+ use python && python-single-r1_pkg_setup |
73 |
+} |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ cmake-utils_src_prepare |
77 |
+ |
78 |
+ # Do not hardcode the python libpath #577612 |
79 |
+ sed -i \ |
80 |
+ -e '/DESTINATION/s:lib/python${PYTHON_VERSION}/dist-packages:${PYTHON_SITEDIR}:' \ |
81 |
+ src/libcec/cmake/CheckPlatformSupport.cmake || die |
82 |
+ |
83 |
+ use python || cmake_comment_add_subdirectory "src/pyCecClient" |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DSKIP_PYTHON_WRAPPER=$(usex python) |
89 |
+ -DHAVE_EXYNOS_API=$(usex exynos) |
90 |
+ -DHAVE_TDA955X_API=$(usex cubox) |
91 |
+ -DHAVE_RPI_API=$(usex raspberry-pi) |
92 |
+ ) |
93 |
+ use python && mycmakeargs+=( |
94 |
+ -DPYTHON_SITEDIR="$(python_get_sitedir)" |
95 |
+ ) |
96 |
+ |
97 |
+ # raspberrypi-userland itself does not provide .pc file so using |
98 |
+ # bcm_host.pc instead |
99 |
+ use raspberry-pi && mycmakeargs+=( |
100 |
+ -DRPI_INCLUDE_DIR=$( $(tc-getPKG_CONFIG) --variable=includedir bcm_host) \ |
101 |
+ -DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host) |
102 |
+ ) |
103 |
+ |
104 |
+ cmake-utils_src_configure |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ elog "You will need to ensure the user running your CEC client has" |
109 |
+ elog "read/write access to the device. You can ensure this by adding" |
110 |
+ elog "them to the uucp group" |
111 |
+} |