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: Fri, 30 Apr 2021 12:21:42
Message-Id: 1619785292.598fbb5af98d6f7d60b15df103a84ed9f0d4fb5e.polynomial-c@gentoo
1 commit: 598fbb5af98d6f7d60b15df103a84ed9f0d4fb5e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 12:20:00 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 12:21:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=598fbb5a
7
8 dev-libs/libinput: Bump to version 1.17.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 dev-libs/libinput/Manifest | 1 +
13 dev-libs/libinput/libinput-1.17.2.ebuild | 88 ++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest
17 index 6b94ad65480..a5a252ce72c 100644
18 --- a/dev-libs/libinput/Manifest
19 +++ b/dev-libs/libinput/Manifest
20 @@ -1 +1,2 @@
21 DIST libinput-1.17.1.tar.xz 611492 BLAKE2B 274312240fccc49a45dedc3d41018bc952f25040217f388fd461aebabe796be106dd4f34cb2e40ce91fc75219c47fbd605c6facdc4d47893420e5df199a7edb7 SHA512 2e7baa198fed9c673d28453efb066f9371f2b575a844e41cde455c636bbe1cc68faae7129026944a502cd5d7bfcc72272066b9e3cda5c959f7b464483f9dd860
22 +DIST libinput-1.17.2.tar.xz 611388 BLAKE2B a94ab1e3ef65f49a3043e5f84d68748c4800be1e2e0911b45be2a9cd6655311b2e6c2fcde64827f57e74318fc759d95e045125239305a2ae94175371c178c50a SHA512 b8953ad483648d5629d56c4dc226d4906693b15da5ba4027627a51ec35ea65b0603c09056b52ed2025df1f7a877669a5b7482c025e0b37003fc676563bd05263
23
24 diff --git a/dev-libs/libinput/libinput-1.17.2.ebuild b/dev-libs/libinput/libinput-1.17.2.ebuild
25 new file mode 100644
26 index 00000000000..610b570961f
27 --- /dev/null
28 +++ b/dev-libs/libinput/libinput-1.17.2.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 2014-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7,8,9} )
35 +
36 +inherit meson python-any-r1 udev
37 +
38 +DESCRIPTION="Library to handle input devices in Wayland"
39 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
40 +SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0/10"
44 +[[ "$(ver_cut 3)" -gt 900 ]] || \
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
46 +IUSE="doc input_devices_wacom test"
47 +RESTRICT="!test? ( test )"
48 +
49 +BDEPEND="
50 + virtual/pkgconfig
51 + doc? (
52 + $(python_gen_any_dep '
53 + dev-python/commonmark[${PYTHON_USEDEP}]
54 + dev-python/recommonmark[${PYTHON_USEDEP}]
55 + dev-python/sphinx[${PYTHON_USEDEP}]
56 + >=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
57 + ')
58 + >=app-doc/doxygen-1.8.3
59 + >=media-gfx/graphviz-2.38.0
60 + )
61 +"
62 +# test? ( dev-util/valgrind )
63 +RDEPEND="
64 + input_devices_wacom? ( >=dev-libs/libwacom-0.20 )
65 + >=dev-libs/libevdev-1.3
66 + >=sys-libs/mtdev-1.1
67 + virtual/libudev:=
68 + virtual/udev
69 +"
70 +DEPEND="${RDEPEND}
71 + test? ( >=dev-libs/check-0.9.10 )"
72 +
73 +python_check_deps() {
74 + has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \
75 + has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
76 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
77 + has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
78 +}
79 +
80 +pkg_setup() {
81 + use doc && python-any-r1_pkg_setup
82 +}
83 +
84 +src_prepare() {
85 + default
86 + sed "s@, '-Werror'@@" -i meson.build || die #744250
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 + $(meson_use test tests)
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 + pkgname="dev-python/python-libevdev"
111 + if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
112 + einfo "${pkgname} must be installed to use the"
113 + einfo "libinput measure and libinput replay tools."
114 + fi
115 +
116 + udevadm hwdb --update --root="${ROOT}"
117 +}