diff options
author | Mart Raudsepp <leio@gentoo.org> | 2020-03-01 17:41:00 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2020-03-01 18:17:41 +0200 |
commit | 1d8530706e7610f2ddd3a7d5488fbcaf16c25358 (patch) | |
tree | a8509af947f0881ccc5f61c2c580e6d1fd693050 /gnome-base/gnome-control-center | |
parent | gnome-extra/gnome-clocks: bump to 3.34.0 (diff) | |
download | gentoo-1d8530706e7610f2ddd3a7d5488fbcaf16c25358.tar.gz gentoo-1d8530706e7610f2ddd3a7d5488fbcaf16c25358.tar.bz2 gentoo-1d8530706e7610f2ddd3a7d5488fbcaf16c25358.zip |
gnome-base/gnome-control-center: fix dbusmock test dep handling
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'gnome-base/gnome-control-center')
-rw-r--r-- | gnome-base/gnome-control-center/gnome-control-center-3.32.2.ebuild | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.32.2.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.32.2.ebuild index 70a11f092400..9441fe8260da 100644 --- a/gnome-base/gnome-control-center/gnome-control-center-3.32.2.ebuild +++ b/gnome-base/gnome-control-center/gnome-control-center-3.32.2.ebuild @@ -2,8 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 +PYTHON_COMPAT=( python3_{6,7,8} ) -inherit gnome.org gnome2-utils meson xdg +inherit gnome.org gnome2-utils meson python-any-r1 xdg DESCRIPTION="GNOME's main interface to configure various aspects of the desktop" HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/" @@ -11,7 +12,8 @@ SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz" LICENSE="GPL-2+" SLOT="2" -IUSE="+bluetooth +cups debug elogind flickr +gnome-online-accounts +ibus input_devices_wacom kerberos networkmanager systemd v4l wayland" +IUSE="+bluetooth +cups debug elogind flickr +gnome-online-accounts +ibus input_devices_wacom kerberos networkmanager systemd test v4l wayland" +RESTRICT="!test? ( test )" REQUIRED_USE=" flickr? ( gnome-online-accounts ) ^^ ( elogind systemd ) @@ -115,6 +117,9 @@ DEPEND="${COMMON_DEPEND} dev-util/glib-utils >=sys-devel/gettext-0.19.8 virtual/pkgconfig + test? ( $(python_gen_any_dep ' + dev-python/dbusmock[${PYTHON_USEDEP}] + ') ) " PATCHES=( @@ -127,6 +132,22 @@ PATCHES=( "${FILESDIR}"/${PN}-3.32.2-fix-gcc10-fno-common.patch # fixed in 3.35.90 ) +python_check_deps() { + use test && \ + has_version "dev-python/dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + xdg_src_prepare + # Mark python tests with shebang executable, so that meson will launch them directly, instead + # of via its own python-single-r1 version, which might not match what we get from python_check_deps + chmod a+x tests/network/test-network-panel.py tests/datetime/test-datetime.py || die +} + src_configure() { local emesonargs=( $(meson_use bluetooth) |