commit: e9ef239fbf4e16b0dc6871513578533e0e99739d
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 19 23:31:21 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Aug 19 23:53:54 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9ef239f
dev-libs/gobject-introspection: Depend on mako and markdown for tests
test_docwriter.py looks to requires dev-python/mako, and via
giscanner/docwriter.py, dev-python/markdown. The test contains
@unittest.skipUnless(HAS_MAKO, "mako missing")
which skips the test if mako is not available, but it does not check
whether markdown is also available. In the case that mako is available
but markdown is not, the test will run and fail to import markdown.
These are common and small dependencies. Let's just require both of them
for tests.
Closes: https://bugs.gentoo.org/733668
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
.../gobject-introspection/gobject-introspection-1.64.1-r1.ebuild | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git
a/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
b/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
index e46c93b2e1f..ff498a735a4 100644
--- a/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
+++ b/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
@@ -39,7 +39,13 @@ DEPEND="${RDEPEND}
)
sys-devel/bison
sys-devel/flex
- test? ( x11-libs/cairo[glib] )
+ test? (
+ x11-libs/cairo[glib]
+ $(python_gen_cond_dep '
+ dev-python/mako[${PYTHON_MULTI_USEDEP}]
+ dev-python/markdown[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
"
pkg_setup() {