summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-30 10:41:35 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-30 11:53:12 -0400
commit62baf9140884a7191bce2b6eb2f48947bbbde195 (patch)
tree4ec5f496d210ba6b278270142fb5abd932e9063b /gnome-base
parentdev-ruby/facter: 3.14.10 bump (diff)
downloadgentoo-62baf9140884a7191bce2b6eb2f48947bbbde195.tar.gz
gentoo-62baf9140884a7191bce2b6eb2f48947bbbde195.tar.bz2
gentoo-62baf9140884a7191bce2b6eb2f48947bbbde195.zip
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 <floppym@gentoo.org>
Diffstat (limited to 'gnome-base')
-rw-r--r--gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild13
1 files changed, 12 insertions, 1 deletions
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