app-crypt/libsecret: add missing dbus-python test dependency
authorMart Raudsepp <leio@gentoo.org>
Tue, 24 Apr 2018 09:59:40 +0000 (12:59 +0300)
committerMart Raudsepp <leio@gentoo.org>
Tue, 24 Apr 2018 10:00:54 +0000 (13:00 +0300)
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

index e33fcf513a9665fb43e00b2f7c8bd0b7d3b9af16..ce764e48516150cba20dc12d0a5e1154388391e4 100644 (file)
@@ -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() {