Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/gnome-bluetooth/
Date: Sat, 17 Apr 2021 22:49:03
Message-Id: 1618699734.99a4a4f0466ffa6a2c8af0f568b70ab7f1d07f1f.mattst88@gentoo
1 commit: 99a4a4f0466ffa6a2c8af0f568b70ab7f1d07f1f
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 17 22:43:41 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 17 22:48:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99a4a4f0
7
8 net-wireless/gnome-bluetooth: Add missing test dependencies
9
10 Closes: https://bugs.gentoo.org/783081
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 .../gnome-bluetooth/gnome-bluetooth-3.34.5.ebuild | 23 ++++++++++++++++++++--
14 1 file changed, 21 insertions(+), 2 deletions(-)
15
16 diff --git a/net-wireless/gnome-bluetooth/gnome-bluetooth-3.34.5.ebuild b/net-wireless/gnome-bluetooth/gnome-bluetooth-3.34.5.ebuild
17 index 04b83b0833a..645a2ed658b 100644
18 --- a/net-wireless/gnome-bluetooth/gnome-bluetooth-3.34.5.ebuild
19 +++ b/net-wireless/gnome-bluetooth/gnome-bluetooth-3.34.5.ebuild
20 @@ -2,14 +2,16 @@
21 # Distributed under the terms of the GNU General Public License v2
22
23 EAPI=7
24 -inherit gnome.org gnome2-utils meson udev xdg
25 +PYTHON_COMPAT=( python3_{7..9} )
26 +inherit gnome.org gnome2-utils meson python-any-r1 udev xdg
27
28 DESCRIPTION="Bluetooth graphical utilities integrated with GNOME"
29 HOMEPAGE="https://wiki.gnome.org/Projects/GnomeBluetooth"
30
31 LICENSE="GPL-2+ LGPL-2.1+ FDL-1.1+"
32 SLOT="2/13" # subslot = libgnome-bluetooth soname version
33 -IUSE="gtk-doc +introspection"
34 +IUSE="gtk-doc +introspection test"
35 +RESTRICT="!test? ( test )"
36 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
37
38 DEPEND="
39 @@ -31,8 +33,25 @@ BDEPEND="
40 dev-util/glib-utils
41 gtk-doc? ( >=dev-util/gtk-doc-1.9 )
42 virtual/pkgconfig
43 + test? (
44 + $(python_gen_any_dep '
45 + dev-python/dbusmock[${PYTHON_USEDEP}]
46 + dev-python/dbus-python[${PYTHON_USEDEP}]
47 + ')
48 + )
49 "
50
51 +python_check_deps() {
52 + if use test; then
53 + has_version -b "dev-python/dbusmock[${PYTHON_USEDEP}]" && \
54 + has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]"
55 + fi
56 +}
57 +
58 +pkg_setup() {
59 + use test && python-any-r1_pkg_setup
60 +}
61 +
62 src_configure() {
63 local emesonargs=(
64 -Dicon_update=false