commit: 5df7b9660c3b9d5e63c75e497a9419fdeadb0eb5 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Dec 6 19:57:49 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Dec 6 20:21:28 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5df7b966
dev-python/pycairo: Fix USE doc Closes: https://bugs.gentoo.org/670938 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> dev-python/pycairo/pycairo-1.18.2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-python/pycairo/pycairo-1.18.2.ebuild b/dev-python/pycairo/pycairo-1.18.2.ebuild index bae86c274de..d1e334554fd 100644 --- a/dev-python/pycairo/pycairo-1.18.2.ebuild +++ b/dev-python/pycairo/pycairo-1.18.2.ebuild @@ -18,7 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~spa IUSE="doc examples test" BDEPEND=" - doc? ( dev-python/sphinx ) + doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) test? ( dev-python/hypothesis[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] @@ -31,6 +31,10 @@ DEPEND="${RDEPEND}" RESTRICT="!test? ( test )" +python_check_deps() { + use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + python_compile_all() { if use doc; then sphinx-build docs -b html _build/html || die