Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libinput/
Date: Tue, 13 Aug 2019 12:46:28
Message-Id: 1565700379.568aa11ed0e00086a6d28d637d7c951f0d5d0dca.polynomial-c@gentoo
1 commit: 568aa11ed0e00086a6d28d637d7c951f0d5d0dca
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 13 12:45:59 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 13 12:46:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568aa11e
7
8 dev-libs/libinput: Bump to version 1.14.0
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libinput/Manifest | 1 +
14 dev-libs/libinput/libinput-1.14.0.ebuild | 78 ++++++++++++++++++++++++++++++++
15 2 files changed, 79 insertions(+)
16
17 diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest
18 index 7cc34fe98e2..d0c3893a8f9 100644
19 --- a/dev-libs/libinput/Manifest
20 +++ b/dev-libs/libinput/Manifest
21 @@ -1 +1,2 @@
22 DIST libinput-1.13.4.tar.xz 530000 BLAKE2B 96345625b98ecc5476b9525cac84ec6cffb5854ce8d9e197fa73dbcb3548ebfea7820fa32d4e808222c0471fc94d89003775587cc0ed9c8445dd5902d3463792 SHA512 ccfdfc704dab9ea19a503399ecd4ce3a95b8d9480b8dfddeb80be01236c34c6f2f472be0e12e04dddd68092611470d303351e092141bc7491729639bcf7e64d7
23 +DIST libinput-1.14.0.tar.xz 563272 BLAKE2B 9d5f831c9224b01aa4be92494f28ab95909dff2d81f5e60bada2ca12a2fb4f5745b99a4caa4abef06938cbd7d9e8da9aed85573e447ad6b6e52392e17534953a SHA512 e501c5b8a58bb287c175692af0e59ff766a8613eb576aaa0700686dfbb6c6ab63b7a5d3f148fce75397c8170bc49871068861d93c352355ab5d0d9e7f1b059ec
24
25 diff --git a/dev-libs/libinput/libinput-1.14.0.ebuild b/dev-libs/libinput/libinput-1.14.0.ebuild
26 new file mode 100644
27 index 00000000000..c6c5651aad4
28 --- /dev/null
29 +++ b/dev-libs/libinput/libinput-1.14.0.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 2014-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
36 +
37 +inherit meson python-any-r1 udev
38 +
39 +DESCRIPTION="Library to handle input devices in Wayland"
40 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
41 +SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0/10"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
46 +IUSE="doc input_devices_wacom"
47 +# Tests require write access to udev rules directory which is a no-no for live system.
48 +# Other tests are just about logs, exported symbols and autotest of the test library.
49 +RESTRICT="test"
50 +
51 +BDEPEND="
52 + virtual/pkgconfig
53 + doc? (
54 + $(python_gen_any_dep '
55 + dev-python/commonmark[${PYTHON_USEDEP}]
56 + dev-python/recommonmark[${PYTHON_USEDEP}]
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + >=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
59 + ')
60 + >=app-doc/doxygen-1.8.3
61 + >=media-gfx/graphviz-2.38.0
62 + )
63 +"
64 +# test? ( dev-util/valgrind )
65 +RDEPEND="
66 + input_devices_wacom? ( >=dev-libs/libwacom-0.20 )
67 + >=dev-libs/libevdev-1.3
68 + >=sys-libs/mtdev-1.1
69 + virtual/libudev:=
70 + virtual/udev
71 +"
72 +DEPEND="${RDEPEND}"
73 +# test? ( >=dev-libs/check-0.9.10 )
74 +
75 +python_check_deps() {
76 + has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \
77 + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
78 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
79 + has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
80 +}
81 +
82 +pkg_setup() {
83 + use doc && python-any-r1_pkg_setup
84 +}
85 +
86 +src_configure() {
87 + # gui can be built but will not be installed
88 + local emesonargs=(
89 + -Ddebug-gui=false
90 + $(meson_use doc documentation)
91 + $(meson_use input_devices_wacom libwacom)
92 + -Dtests=false # tests are restricted
93 + -Dudev-dir="$(get_udevdir)"
94 + )
95 + meson_src_configure
96 +}
97 +
98 +src_install() {
99 + meson_src_install
100 + if use doc ; then
101 + docinto html
102 + dodoc -r "${BUILD_DIR}"/Documentation/.
103 + fi
104 +}
105 +
106 +pkg_postinst() {
107 + udevadm hwdb --update --root="${ROOT}"
108 +}