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: Sat, 19 Feb 2022 23:09:09
Message-Id: 1645312115.345890b54e7901439e72cb6e94059415d061f115.polynomial-c@gentoo
1 commit: 345890b54e7901439e72cb6e94059415d061f115
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 19 23:08:35 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 19 23:08:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345890b5
7
8 dev-libs/libinput: Bump to version 1.20.0
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.20.0.ebuild | 88 ++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest
17 index e530aeac9f58..4ffa65558dbe 100644
18 --- a/dev-libs/libinput/Manifest
19 +++ b/dev-libs/libinput/Manifest
20 @@ -1 +1,2 @@
21 DIST libinput-1.19.3.tar.xz 655164 BLAKE2B a07d91603a3d4e759aad25ee46b11dbee47eb013a2361f1b70acd616fee0ed9660e6fa8773948d6acf3686179fd7aaf76bf8285f3dc3137a4b1b605ec0e4d6d2 SHA512 f4b776d0da78c687ba21b430a04941ac6b43f68970c82ec9f7360358fdea5ed6a873948ce66a25bcdd64d4b95fa4bf705cc24dbc25c7c0f5fd2d0efbd763f298
22 +DIST libinput-1.20.0.tar.gz 982547 BLAKE2B 6a30ec5473b7271b89a50cb5147900928bc1ac370cb30bb7a9282517f9ced1973e7f83e864a865c840a1f1fe447459c329b8966211cafcd28f8d1285a36de593 SHA512 b92345809f4e18b2335e3c377d1a8edda523462ff23fba6abcc5f8cf01b80fc4c6e4e06886088788c4b04873d37da210876f201bb81203af2f9f614bc659e6eb
23
24 diff --git a/dev-libs/libinput/libinput-1.20.0.ebuild b/dev-libs/libinput/libinput-1.20.0.ebuild
25 new file mode 100644
26 index 000000000000..c14415db2dff
27 --- /dev/null
28 +++ b/dev-libs/libinput/libinput-1.20.0.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 2014-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +PYTHON_COMPAT=( python3_{8..10} )
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://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0/10"
44 +[[ "$(ver_cut 3)" -gt 900 ]] || \
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~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.27 )
65 + >=dev-libs/libevdev-1.9.902
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 -b "dev-python/commonmark[${PYTHON_USEDEP}]" && \
75 + has_version -b "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
76 + has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" && \
77 + has_version -b ">=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 +}