1 |
commit: 54613df62106ec3c776eb3d6e429f0ad26b8b526 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <arfrever.fta <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 16 09:41:54 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 16 09:44:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54613df6 |
7 |
|
8 |
dev-libs/libinput: implement usage of python-any-r1.eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/665722 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
dev-libs/libinput/libinput-1.12.1-r1.ebuild | 18 ++++++++++++++---- |
15 |
1 file changed, 14 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/libinput/libinput-1.12.1-r1.ebuild b/dev-libs/libinput/libinput-1.12.1-r1.ebuild |
18 |
index 6da9ac2bd8d..f62f6c75ec6 100644 |
19 |
--- a/dev-libs/libinput/libinput-1.12.1-r1.ebuild |
20 |
+++ b/dev-libs/libinput/libinput-1.12.1-r1.ebuild |
21 |
@@ -2,7 +2,9 @@ |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
-inherit meson udev |
26 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
27 |
+ |
28 |
+inherit meson python-any-r1 udev |
29 |
|
30 |
DESCRIPTION="Library to handle input devices in Wayland" |
31 |
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/" |
32 |
@@ -26,9 +28,11 @@ RDEPEND=" |
33 |
DEPEND="${RDEPEND} |
34 |
virtual/pkgconfig |
35 |
doc? ( |
36 |
- dev-python/CommonMark |
37 |
- dev-python/recommonmark |
38 |
- dev-python/sphinx |
39 |
+ $(python_gen_any_dep ' |
40 |
+ dev-python/CommonMark[${PYTHON_USEDEP}] |
41 |
+ dev-python/recommonmark[${PYTHON_USEDEP}] |
42 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
43 |
+ ') |
44 |
>=app-doc/doxygen-1.8.3 |
45 |
>=media-gfx/graphviz-2.38.0 |
46 |
) |
47 |
@@ -38,6 +42,12 @@ DEPEND="${RDEPEND} |
48 |
# dev-util/valgrind |
49 |
# sys-libs/libunwind ) |
50 |
|
51 |
+python_check_deps() { |
52 |
+ has_version "dev-python/CommonMark[${PYTHON_USEDEP}]" && \ |
53 |
+ has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \ |
54 |
+ has_version "dev-python/sphinx[${PYTHON_USEDEP}]" |
55 |
+} |
56 |
+ |
57 |
src_configure() { |
58 |
# gui can be built but will not be installed |
59 |
local emesonargs=( |