Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gobject-introspection/
Date: Wed, 19 Aug 2020 23:54:37
Message-Id: 1597881234.e9ef239fbf4e16b0dc6871513578533e0e99739d.mattst88@gentoo
1 commit: e9ef239fbf4e16b0dc6871513578533e0e99739d
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 19 23:31:21 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 23:53:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9ef239f
7
8 dev-libs/gobject-introspection: Depend on mako and markdown for tests
9
10 test_docwriter.py looks to requires dev-python/mako, and via
11 giscanner/docwriter.py, dev-python/markdown. The test contains
12
13 @unittest.skipUnless(HAS_MAKO, "mako missing")
14
15 which skips the test if mako is not available, but it does not check
16 whether markdown is also available. In the case that mako is available
17 but markdown is not, the test will run and fail to import markdown.
18
19 These are common and small dependencies. Let's just require both of them
20 for tests.
21
22 Closes: https://bugs.gentoo.org/733668
23 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
24
25 .../gobject-introspection/gobject-introspection-1.64.1-r1.ebuild | 8 +++++++-
26 1 file changed, 7 insertions(+), 1 deletion(-)
27
28 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
29 index e46c93b2e1f..ff498a735a4 100644
30 --- a/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
31 +++ b/dev-libs/gobject-introspection/gobject-introspection-1.64.1-r1.ebuild
32 @@ -39,7 +39,13 @@ DEPEND="${RDEPEND}
33 )
34 sys-devel/bison
35 sys-devel/flex
36 - test? ( x11-libs/cairo[glib] )
37 + test? (
38 + x11-libs/cairo[glib]
39 + $(python_gen_cond_dep '
40 + dev-python/mako[${PYTHON_MULTI_USEDEP}]
41 + dev-python/markdown[${PYTHON_MULTI_USEDEP}]
42 + ')
43 + )
44 "
45
46 pkg_setup() {