Closes: https://bugs.gentoo.org/670938
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
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}]
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