From: Mike Gilbert Date: Thu, 30 Apr 2020 14:41:35 +0000 (-0400) Subject: gnome-base/libgnome-keyring: fix python-any-r1 eclass usage X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62baf9140884a7191bce2b6eb2f48947bbbde195;p=gentoo.git gnome-base/libgnome-keyring: fix python-any-r1 eclass usage Closes: https://bugs.gentoo.org/708574 Closes: https://bugs.gentoo.org/720128 Signed-off-by: Mike Gilbert --- diff --git a/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild b/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild index f8384173ee0b..30c0398c00e8 100644 --- a/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild +++ b/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild @@ -32,12 +32,23 @@ DEPEND="${RDEPEND} >=dev-util/intltool-0.35 sys-devel/gettext virtual/pkgconfig - test? ( $(python_gen_any_dep ' + test? ( ${PYTHON_DEPS} $(python_gen_any_dep ' dev-python/pygobject:2[${PYTHON_USEDEP}] dev-python/dbus-python[${PYTHON_USEDEP}]') ) vala? ( $(vala_depend) ) " +python_check_deps() { + if use test; then + has_version "dev-python/pygobject:2[${PYTHON_USEDEP}]" && + has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" + fi +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_prepare() { epatch "${FILESDIR}"/${PV}-vala-0.42-compat.patch use vala && vala_src_prepare