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/libwacom/
Date: Fri, 29 Jul 2022 18:57:21
Message-Id: 1659121030.8a57165b5b98e4ffb14efcbb704cf820cabe292e.mattst88@gentoo
1 commit: 8a57165b5b98e4ffb14efcbb704cf820cabe292e
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 18:33:01 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 18:57:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a57165b
7
8 dev-libs/libwacom: Version bump to 2.4.0
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-libs/libwacom/Manifest | 1 +
13 dev-libs/libwacom/libwacom-2.4.0.ebuild | 71 +++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-libs/libwacom/Manifest b/dev-libs/libwacom/Manifest
17 index 69430b2c6c53..e0aa03eac170 100644
18 --- a/dev-libs/libwacom/Manifest
19 +++ b/dev-libs/libwacom/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libwacom-1.12.tar.bz2 543819 BLAKE2B fdbfba23d7b1e047757b0c0ff698a484cadc91c199459e1da49bfd5a5406aeb62d2ca43856f7d8363c3f36c7c05f4d3160e8fb576c3d18f085144dec259d49c5 SHA512 4e0084eda01e78f52336f3f1f1ea3ea86cb9c5fdd6d6c0316662405ebe2a328d6837f8db855e58f5fa95a640a5d456a081a7de339a372bf851bc0d5c69530379
22 DIST libwacom-2.3.0.tar.xz 107872 BLAKE2B 5589067eabb0b0d5384015a0200950146d1c028ce8cd870b845de8ec22ca1710645755253952e49f9c1db585a945c6ea8da37318b900f16602a1a7081512ecd9 SHA512 ccbeddc55cc67d8102aa4536616f3c379877ba9154a72d7ad92941854c79b727a21efacf4282b9a8730ff181d094749bf84a9fe5850de6246d91a17e5029d888
23 +DIST libwacom-2.4.0.tar.xz 108812 BLAKE2B 18f41cd052b18c652c61062948355b4738afe57db344749055492cc6853bcbe3048c582a72318891727ec0fb01a7799f4c80c544b37b51c9246f98e5ae3fef1b SHA512 c67b8a81e9f4285a4e6f422b29e9b8b3677e3fc45e5190fd2b95ad361e5ef35e124b7d78bcf2bb9d7b7183525a6be9916b3038714c42c9ef405a1075750465f3
24
25 diff --git a/dev-libs/libwacom/libwacom-2.4.0.ebuild b/dev-libs/libwacom/libwacom-2.4.0.ebuild
26 new file mode 100644
27 index 000000000000..450f5ceeff32
28 --- /dev/null
29 +++ b/dev-libs/libwacom/libwacom-2.4.0.ebuild
30 @@ -0,0 +1,71 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +inherit meson python-any-r1 udev
38 +
39 +DESCRIPTION="Library for identifying Wacom tablets and their model-specific features"
40 +HOMEPAGE="https://github.com/linuxwacom/libwacom"
41 +SRC_URI="https://github.com/linuxwacom/${PN}/releases/download/${P}/${P}.tar.xz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0/9" # libwacom SONAME
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
46 +IUSE="doc test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="
50 + dev-libs/glib:2
51 + dev-libs/libgudev:=
52 +"
53 +DEPEND="${RDEPEND}"
54 +BDEPEND="
55 + virtual/pkgconfig
56 + doc? ( app-doc/doxygen )
57 + test? (
58 + ${PYTHON_DEPS}
59 + $(python_gen_any_dep '
60 + dev-python/python-libevdev[${PYTHON_USEDEP}]
61 + dev-python/pyudev[${PYTHON_USEDEP}]
62 + dev-python/pytest[${PYTHON_USEDEP}]
63 + ')
64 + )
65 +"
66 +
67 +python_check_deps() {
68 + has_version -b "dev-python/python-libevdev[${PYTHON_USEDEP}]" &&
69 + has_version -b "dev-python/pyudev[${PYTHON_USEDEP}]" &&
70 + has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
71 +}
72 +
73 +pkg_setup() {
74 + if use test; then
75 + python-any-r1_pkg_setup
76 + fi
77 +}
78 +
79 +src_prepare() {
80 + default
81 +
82 + # Don't call systemd daemon-reload in the test suite
83 + sed -i -e '/daemon-reload/d' test/test_udev_rules.py || die
84 +}
85 +
86 +src_configure() {
87 + local emesonargs=(
88 + $(meson_feature doc documentation)
89 + $(meson_feature test tests)
90 + -Dudev-dir=$(get_udevdir)
91 + )
92 + meson_src_configure
93 +}
94 +
95 +pkg_postinst() {
96 + udev_reload
97 +}
98 +
99 +pkg_postrm() {
100 + udev_reload
101 +}