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: Mon, 03 Aug 2020 12:27:56
Message-Id: 1596457597.969a5463ad91e506b2a05feb9f6b35f6a14cfc98.polynomial-c@gentoo
1 commit: 969a5463ad91e506b2a05feb9f6b35f6a14cfc98
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 12:15:37 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 12:26:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=969a5463
7
8 dev-libs/libinput: Bump to version 1.16.0
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libinput/Manifest | 1 +
14 dev-libs/libinput/libinput-1.16.0.ebuild | 83 ++++++++++++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest
18 index bdf5e050541..31382cf2fb8 100644
19 --- a/dev-libs/libinput/Manifest
20 +++ b/dev-libs/libinput/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libinput-1.15.5.tar.xz 582800 BLAKE2B 8575dbe6699230610e05f4c7e9e72aebb1fb765be1d305ba6d9fcf69c6efc990ec78bd0746b29921a2414df99c536c3f267b1dd1d6d98c872e360fc16572e2a4 SHA512 a0a3a325048841fc017e19d3bc5f5490605972ab9e2730dc5678bda7efb7a5b1fa6f531f3c8abd8393899ec383d8d2bcfd586eacee04fc1fbda0e02ba2af956a
23 DIST libinput-1.15.6.tar.xz 584184 BLAKE2B 9963e9df41cb32c40454a3dc76975315f74a2e8b2549c037868c651c2ada90f77a605048ba603a4c01d0641fc39154b578a766309f1c376c07d3bdd02dfd387c SHA512 90459e5a1f22fd42ffcbab157b461e4514c30803bcebdaced76c65c05cccfa6f259640a50497055fe7ed0b376a6979f6d1d01227ae447fe60ba88fa81142b969
24 +DIST libinput-1.16.0.tar.xz 593304 BLAKE2B 959b9e5720b1aa196eb45cf772e8edc800032ee0cd2db1c06537ed979cbf83eaef8c50d2f6aa194e8cf668fcfd1bcb46767a897f99679867b7d816e2567c16a8 SHA512 0c932a88f2a1d23ebef0d58c0cdbfb558e9e3d990fca15b21f5b9011bdd1bc2da81aad374fcdb8f4590f6ee2fc45e668e0583371ceb354437e585240e687aac6
25
26 diff --git a/dev-libs/libinput/libinput-1.16.0.ebuild b/dev-libs/libinput/libinput-1.16.0.ebuild
27 new file mode 100644
28 index 00000000000..cfbdf181687
29 --- /dev/null
30 +++ b/dev-libs/libinput/libinput-1.16.0.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 2014-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{6,7,8} )
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 ~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 "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 + $(meson_use test tests)
93 + -Dudev-dir="${EPREFIX}$(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 + pkgname="dev-python/python-libevdev"
108 + if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
109 + einfo "${pkgname} must be installed to use the"
110 + einfo "libinput measure and libinput replay tools."
111 + fi
112 +
113 + udevadm hwdb --update --root="${ROOT}"
114 +}