Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libevdev/
Date: Mon, 01 Feb 2021 15:48:08
Message-Id: 1612194478.e6f348a0ad139f2734c13c9b51ea9a666ea03840.mattst88@gentoo
1 commit: e6f348a0ad139f2734c13c9b51ea9a666ea03840
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 15:46:49 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 15:47:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6f348a0
7
8 dev-libs/libevdev: Version bump to 1.11.0
9
10 Bug: https://bugs.gentoo.org/700938
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 dev-libs/libevdev/Manifest | 1 +
14 dev-libs/libevdev/libevdev-1.11.0.ebuild | 58 ++++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/dev-libs/libevdev/Manifest b/dev-libs/libevdev/Manifest
18 index 049073fdff1..e2e70411ba9 100644
19 --- a/dev-libs/libevdev/Manifest
20 +++ b/dev-libs/libevdev/Manifest
21 @@ -1 +1,2 @@
22 DIST libevdev-1.10.0.tar.xz 445792 BLAKE2B b7638ae85cac8b8d29c3255da1de50a06db9eb97d752b383852c85c32f8f93f31135e9d28acd474695d36d87eba04d455abd99badf6e492c2561893c47f796d2 SHA512 94ab4ee7e0854c41a491d8e4713baa95ae66dd337b41823011c0913aa1c72e8bbf8b808d5936c2ef456af794b6d3a5cd7cd0515fbd1d06dd1b7ba19275bd928f
23 +DIST libevdev-1.11.0.tar.xz 445316 BLAKE2B f3c1aa688d83f4a27abec23f18817bbdb7a5911cc30fab694271f620c23273cf20109598edb0049239e78a173baa20471ad1f25266eff34a50ed8898d7b86080 SHA512 b3c6b4a1532c5142f3684b920dcdd497a5368aec516e8c389e2c8f9d1eaba16c907b2a7f2c82a3c3ff89bb4d0ae5503c736098c095f9f1bc98f0668e99bf639d
24
25 diff --git a/dev-libs/libevdev/libevdev-1.11.0.ebuild b/dev-libs/libevdev/libevdev-1.11.0.ebuild
26 new file mode 100644
27 index 00000000000..dbdaeebcd51
28 --- /dev/null
29 +++ b/dev-libs/libevdev/libevdev-1.11.0.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7,8,9} )
37 +
38 +inherit meson multilib-minimal python-any-r1
39 +
40 +DESCRIPTION="Handler library for evdev events"
41 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libevdev/ https://gitlab.freedesktop.org/libevdev/libevdev"
42 +
43 +if [[ ${PV} == 9999* ]] ; then
44 + EGIT_REPO_URI="https://gitlab.freedesktop.org/libevdev/libevdev.git"
45 + inherit git-r3
46 +else
47 + SRC_URI="https://www.freedesktop.org/software/libevdev/${P}.tar.xz"
48 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
49 +fi
50 +
51 +LICENSE="MIT"
52 +SLOT="0"
53 +IUSE="doc test"
54 +
55 +DEPEND="test? ( dev-libs/check[${MULTILIB_USEDEP}] )"
56 +BDEPEND="
57 + ${PYTHON_DEPS}
58 + doc? ( app-doc/doxygen )
59 + virtual/pkgconfig
60 +"
61 +RESTRICT="!test? ( test )"
62 +
63 +multilib_src_configure() {
64 + local emesonargs=(
65 + $(meson_feature doc documentation)
66 + $(meson_feature test tests)
67 + )
68 + meson_src_configure
69 +}
70 +
71 +multilib_src_compile() {
72 + meson_src_compile
73 +}
74 +
75 +multilib_src_test() {
76 + meson test -v -C "${BUILD_DIR}" -t 100 || die "tests failed"
77 +}
78 +
79 +multilib_src_install() {
80 + meson_src_install
81 +}
82 +
83 +multilib_src_install_all() {
84 + if use doc; then
85 + local HTML_DOCS=( doc/html/. )
86 + einstalldocs
87 + fi
88 +}