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: Thu, 31 Dec 2020 03:28:08
Message-Id: 1609385266.6d459581fa39969d8245292768ea5bbdfd6aca1e.mattst88@gentoo
1 commit: 6d459581fa39969d8245292768ea5bbdfd6aca1e
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 31 02:56:40 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 31 03:27:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d459581
7
8 dev-libs/libwacom: Version bump to 1.7
9
10 Closes: https://bugs.gentoo.org/756076
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 dev-libs/libwacom/Manifest | 1 +
14 dev-libs/libwacom/libwacom-1.7.ebuild | 60 +++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-libs/libwacom/Manifest b/dev-libs/libwacom/Manifest
18 index a1069f2bb74..d7887891f93 100644
19 --- a/dev-libs/libwacom/Manifest
20 +++ b/dev-libs/libwacom/Manifest
21 @@ -1 +1,2 @@
22 DIST libwacom-1.1.tar.bz2 502696 BLAKE2B 1c2e03b00eb3b17dea2d5cd3e61afa4b7f36dcb727f07bb1cc42631febc9d1939bdd2652d6fd1f0d020815cac1f937c1daddae3019ac9aa01659442cdc8b9054 SHA512 8b63d9bad18c27f8078711408a7b79c70086cd0c64fe692ee693d53d834dff8ab45631eabd206f0dfac80d8cc86c14b5833831b1b99b06e34aacd235176d266b
23 +DIST libwacom-1.7.tar.bz2 513320 BLAKE2B 36cead331b8d79fa629803441190de2c28e22c0e70822075d0ff31552f780e93d606ec2229a2fee744d9e6b91eb4879cb5a202075caf6adf1301b07502cefb7b SHA512 0cdd34c54a4477ffb763c4a291f0a6b33d2df6b1d237332b116e792685201a63a50c3ec98b84e9dc7c0b97c9e407c3531cd67c0af5a8398b5bbf8be6ca103066
24
25 diff --git a/dev-libs/libwacom/libwacom-1.7.ebuild b/dev-libs/libwacom/libwacom-1.7.ebuild
26 new file mode 100644
27 index 00000000000..0c54c6c491e
28 --- /dev/null
29 +++ b/dev-libs/libwacom/libwacom-1.7.ebuild
30 @@ -0,0 +1,60 @@
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..9} )
37 +
38 +inherit meson python-any-r1 toolchain-funcs udev
39 +
40 +DESCRIPTION="Library for identifying Wacom tablets and their model-specific features"
41 +HOMEPAGE="https://github.com/linuxwacom/libwacom"
42 +SRC_URI="https://github.com/linuxwacom/${PN}/releases/download/${P}/${P}.tar.bz2"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
47 +IUSE="doc test"
48 +RESTRICT="!test? ( test )"
49 +
50 +BDEPEND="
51 + virtual/pkgconfig
52 + doc? ( app-doc/doxygen )
53 + test? (
54 + ${PYTHON_DEPS}
55 + $(python_gen_any_dep '
56 + dev-python/python-libevdev[${PYTHON_USEDEP}]
57 + dev-python/pyudev[${PYTHON_USEDEP}]
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + ')
60 + )
61 +"
62 +RDEPEND="
63 + dev-libs/glib:2
64 + dev-libs/libgudev:=
65 +"
66 +DEPEND="${RDEPEND}"
67 +
68 +python_check_deps() {
69 + has_version -b "dev-python/python-libevdev[${PYTHON_USEDEP}]" &&
70 + has_version -b "dev-python/pyudev[${PYTHON_USEDEP}]" &&
71 + has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
72 +}
73 +
74 +pkg_setup() {
75 + tc-ld-disable-gold # bug https://github.com/linuxwacom/libwacom/issues/170
76 +
77 + if use test; then
78 + python-any-r1_pkg_setup
79 + fi
80 +}
81 +
82 +src_configure() {
83 + local emesonargs=(
84 + $(meson_feature doc documentation)
85 + $(meson_feature test tests)
86 + -Dudev-dir=$(get_udevdir)
87 +
88 + )
89 + meson_src_configure
90 +}