commit:     d695efb23bc736e5b00935f8db7e8c62a60ee4ad
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 29 15:38:30 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 29 15:38:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d695efb2

dev-python/secretstorage: Skip gnome-keyring on hppa & sparc

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/secretstorage/secretstorage-3.1.2.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-python/secretstorage/secretstorage-3.1.2.ebuild 
b/dev-python/secretstorage/secretstorage-3.1.2.ebuild
index b00b292f5d9..a375fee0215 100644
--- a/dev-python/secretstorage/secretstorage-3.1.2.ebuild
+++ b/dev-python/secretstorage/secretstorage-3.1.2.ebuild
@@ -23,16 +23,27 @@ RDEPEND="
        >=dev-python/jeepney-0.4.2[${PYTHON_USEDEP}]
 "
 BDEPEND="
-       test? (
+       test? ( !hppa? ( !sparc? (
                gnome-base/gnome-keyring
                sys-apps/dbus
-       )
+       ) ) )
 "
 
 distutils_enable_tests unittest
 distutils_enable_sphinx docs \
        dev-python/alabaster
 
+src_test() {
+       case ${ARCH} in
+               hppa|sparc)
+                       einfo "gnome-keyring is not supported on ${ARCH}, 
skipping tests"
+                       return
+                       ;;
+       esac
+
+       distutils-r1_src_test
+}
+
 python_test() {
        dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \
                || die "tests failed with ${EPYTHON}"

Reply via email to