commit:     ec948a7eb4a93c5fe031c0f085047a540ebf8e82
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 24 09:59:40 2018 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Tue Apr 24 10:00:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec948a7e

app-crypt/libsecret: add missing dbus-python test dependency

Add --host-root to has_version while here - hopefully that's correct..

Closes: https://bugs.gentoo.org/653948
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 app-crypt/libsecret/libsecret-0.18.6.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app-crypt/libsecret/libsecret-0.18.6.ebuild 
b/app-crypt/libsecret/libsecret-0.18.6.ebuild
index e33fcf513a9..ce764e48516 100644
--- a/app-crypt/libsecret/libsecret-0.18.6.ebuild
+++ b/app-crypt/libsecret/libsecret-0.18.6.ebuild
@@ -39,6 +39,7 @@ DEPEND="${RDEPEND}
        test? (
                $(python_gen_any_dep '
                        dev-python/mock[${PYTHON_USEDEP}]
+                       dev-python/dbus-python[${PYTHON_USEDEP}]
                        introspection? ( 
dev-python/pygobject:3[${PYTHON_USEDEP}] )')
                introspection? ( >=dev-libs/gjs-1.32 )
        )
@@ -47,9 +48,10 @@ DEPEND="${RDEPEND}
 
 python_check_deps() {
        if use introspection; then
-               has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
+               has_version --host-root 
"dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
        fi
-       has_version "dev-python/mock[${PYTHON_USEDEP}]"
+       has_version --host-root "dev-python/mock[${PYTHON_USEDEP}]" &&
+       has_version --host-root "dev-python/dbus-python[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {

Reply via email to