1 |
commit: 967b252cdab700984444709e7c1f8f09983df58e |
2 |
Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 14:10:14 2019 +0000 |
4 |
Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 14:10:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=967b252c |
7 |
|
8 |
dev-libs/libcec: Bump to 4.0.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/673584 |
11 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
12 |
Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libcec/Manifest | 1 + |
15 |
dev-libs/libcec/libcec-4.0.4.ebuild | 81 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 82 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libcec/Manifest b/dev-libs/libcec/Manifest |
19 |
index 8f7754a6131..046b38aebd6 100644 |
20 |
--- a/dev-libs/libcec/Manifest |
21 |
+++ b/dev-libs/libcec/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST libcec-3.1.0.tar.gz 1097121 BLAKE2B f216c03c26fd51366282d649d18ca969f362438a2803a7a15dc2aa1ec7caeb4e2a9f02b74e569da4d4c6aa24427ec5bd1870a230dc9c0bc575938c3929a7772b SHA512 e06f65d85ee268ec23380186d11e53f3e477bf25b955c9314cc13555eedeffee902dc8a0f3005248250c584760ab68c461b087b305dc4ef463da628ee1ab433b |
24 |
DIST libcec-4.0.2.tar.gz 334995 BLAKE2B bdbebeb339ce39f2f740805c4c627cc5190cc0dd57d0d87e3d3aa4ba8feeba103336d035fb8b282358f2e08fa470111be43df4df48870be0e9aa93f35434d0ef SHA512 7bb80965cd1bef713f59bff136dc4a7f1172c4a9bdb8e2f59c6bcc5b74110848c0b2912263280ea68177908a688127e8d7208fc43ce6e65d589343b85395a0bb |
25 |
+DIST libcec-4.0.4.tar.gz 344976 BLAKE2B ce88730ee6e9f57a3f874dd47343e8bb12bd9d3644b58703f0b797bfe656fa25461e6847db4023fec92d9e9740f0e58b59a203258d39d8883b8ae9cde147f455 SHA512 8991ba96fe9a87e5e1f63ff87f77fc0fc3b735c537e2ee6cb004fdc264d75cecd043e39b49cf9e64aeadd24bb1fb57911d9c4bd6c494d9ba4035d7320c268116 |
26 |
|
27 |
diff --git a/dev-libs/libcec/libcec-4.0.4.ebuild b/dev-libs/libcec/libcec-4.0.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..38c70e8e920 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libcec/libcec-4.0.4.ebuild |
32 |
@@ -0,0 +1,81 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
39 |
+MY_PV=${PV/_p/-} |
40 |
+MY_P=${PN}-${MY_PV} |
41 |
+ |
42 |
+inherit cmake-utils linux-info python-single-r1 toolchain-funcs |
43 |
+ |
44 |
+DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor" |
45 |
+HOMEPAGE="http://libcec.pulse-eight.com" |
46 |
+SRC_URI="https://github.com/Pulse-Eight/${PN}/archive/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~x86" |
51 |
+IUSE="cubox exynos python raspberry-pi +xrandr" |
52 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
53 |
+ |
54 |
+RDEPEND="virtual/udev |
55 |
+ >=dev-libs/libplatform-2.0.0 |
56 |
+ sys-libs/ncurses:= |
57 |
+ raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
58 |
+ xrandr? ( x11-libs/libXrandr ) |
59 |
+ python? ( ${PYTHON_DEPS} )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ python? ( dev-lang/swig ) |
62 |
+ virtual/pkgconfig" |
63 |
+ |
64 |
+CONFIG_CHECK="~USB_ACM" |
65 |
+ |
66 |
+S="${WORKDIR}/${PN}-${MY_P}" |
67 |
+ |
68 |
+pkg_pretend() { |
69 |
+ linux-info_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+pkg_setup() { |
73 |
+ linux-info_pkg_setup |
74 |
+ use python && python-single-r1_pkg_setup |
75 |
+} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ cmake-utils_src_prepare |
79 |
+ |
80 |
+ # Do not hardcode the python libpath #577612 |
81 |
+ sed -i \ |
82 |
+ -e '/DESTINATION/s:lib/python${PYTHON_VERSION}/dist-packages:${PYTHON_SITEDIR}:' \ |
83 |
+ src/libcec/cmake/CheckPlatformSupport.cmake || die |
84 |
+ |
85 |
+ use python || cmake_comment_add_subdirectory "src/pyCecClient" |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DSKIP_PYTHON_WRAPPER=$(usex !python) |
91 |
+ -DHAVE_EXYNOS_API=$(usex exynos) |
92 |
+ -DHAVE_TDA995X_API=$(usex cubox) |
93 |
+ -DHAVE_RPI_API=$(usex raspberry-pi) |
94 |
+ ) |
95 |
+ use python && mycmakeargs+=( |
96 |
+ -DPYTHON_SITEDIR="$(python_get_sitedir)" |
97 |
+ ) |
98 |
+ |
99 |
+ # raspberrypi-userland itself does not provide .pc file so using |
100 |
+ # bcm_host.pc instead |
101 |
+ use raspberry-pi && mycmakeargs+=( |
102 |
+ -DRPI_INCLUDE_DIR=$( $(tc-getPKG_CONFIG) --variable=includedir bcm_host) \ |
103 |
+ -DRPI_LIB_DIR=$( $(tc-getPKG_CONFIG) --variable=libdir bcm_host) |
104 |
+ ) |
105 |
+ |
106 |
+ cmake-utils_src_configure |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ elog "You will need to ensure the user running your CEC client has" |
111 |
+ elog "read/write access to the device. You can ensure this by adding" |
112 |
+ elog "them to the uucp group" |
113 |
+} |