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, 28 Sep 2021 10:24:02
Message-Id: 1632824630.6935313fc82fdb57a13841537b3e1822d5c13d7b.polynomial-c@gentoo
1 commit: 6935313fc82fdb57a13841537b3e1822d5c13d7b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 28 10:23:50 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 28 10:23:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6935313f
7
8 dev-libs/libinput: Bump to version 1.19.1
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.19.1.ebuild | 88 ++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest
17 index 3ae76ad5b8c..5e692a189af 100644
18 --- a/dev-libs/libinput/Manifest
19 +++ b/dev-libs/libinput/Manifest
20 @@ -1,3 +1,4 @@
21 DIST libinput-1.18.0.tar.xz 616732 BLAKE2B 4f12080b5e3496fdb5ccb1375a073860c26037ba47033a7d2d69a2f817b4ab5791aa89be08b193925cddd566a04144c73399cbb196a4cc9d3e07dcfb806d3eff SHA512 9a834f075d7a1f892416bb6b241eb052f749d3aa883c4b39c0f1c9616c115d6b9a541b587508646fddaf0d3fe57af92fe4629b522d1d51196499e7b523e0aa90
22 DIST libinput-1.18.1.tar.xz 618524 BLAKE2B 17c5959b6319838dc65f6df7c532d8e048b0295d20178e636dcb3d7a0418f7c107ffc34f280ac0da66011cc80fb8e9f0881b5edd6a4fb64fb674dff6bb5b4526 SHA512 450e38c0f8245aa0165a8047d25aebee646332f0f2ed442bb2d1bd3e723c2082b6d00d6e3bda308981ece8e29b5cddbd56eab900d2b7497705a45fc27b281828
23 DIST libinput-1.19.0.tar.xz 654308 BLAKE2B 6942e704881360724d02f94a9ab87b90c350d16c28305af796a55eed67665cb4c4cbf035a0aaa085ccfc0027bb1936e722bf43dea53dee1c80b2376859dfba9f SHA512 daf42ce797f2b5aef8d6f7a5c0d967590581e6ac12c26fa6bde5fbc619d75319e39ca55d65d5347e554dd6a48b91f5fed4d3167eabef8ad1ebc43bc0c3e8e220
24 +DIST libinput-1.19.1.tar.xz 654600 BLAKE2B fb1c26874e29fc12d5259b00e0790d65584c8128cc7dc0abf3b094abfef5f26a45fb06142fdad3cef13774d6bc9a99a50636e9745270a4113e76e3ba5b6bad0f SHA512 63084f5e081ee4918fee8584d99e6feb84ce9b771015c556c930843e0097abb9b93b6f9731c488b8493eac18fa4086f4822a2ed00f3cb3258346341ad0061c36
25
26 diff --git a/dev-libs/libinput/libinput-1.19.1.ebuild b/dev-libs/libinput/libinput-1.19.1.ebuild
27 new file mode 100644
28 index 00000000000..c16d3716f3d
29 --- /dev/null
30 +++ b/dev-libs/libinput/libinput-1.19.1.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 2014-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit meson python-any-r1 udev
39 +
40 +DESCRIPTION="Library to handle input devices in Wayland"
41 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
42 +SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0/10"
46 +[[ "$(ver_cut 3)" -gt 900 ]] || \
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
48 +IUSE="doc input_devices_wacom test"
49 +RESTRICT="!test? ( 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 -b "dev-python/commonmark[${PYTHON_USEDEP}]" && \
77 + has_version -b "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
78 + has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" && \
79 + has_version -b ">=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_prepare() {
87 + default
88 + sed "s@, '-Werror'@@" -i meson.build || die #744250
89 +}
90 +
91 +src_configure() {
92 + # gui can be built but will not be installed
93 + local emesonargs=(
94 + -Ddebug-gui=false
95 + $(meson_use doc documentation)
96 + $(meson_use input_devices_wacom libwacom)
97 + $(meson_use test tests)
98 + -Dudev-dir="${EPREFIX}$(get_udevdir)"
99 + )
100 + meson_src_configure
101 +}
102 +
103 +src_install() {
104 + meson_src_install
105 + if use doc ; then
106 + docinto html
107 + dodoc -r "${BUILD_DIR}"/Documentation/.
108 + fi
109 +}
110 +
111 +pkg_postinst() {
112 + pkgname="dev-python/python-libevdev"
113 + if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
114 + einfo "${pkgname} must be installed to use the"
115 + einfo "libinput measure and libinput replay tools."
116 + fi
117 +
118 + udevadm hwdb --update --root="${ROOT}"
119 +}