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