summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-04 15:41:30 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-09 09:43:46 +0100
commit1788cb332f8137aba445ab4b0fb57b855e86941e (patch)
tree65cd19adf5949bee0334e7b0a890b232971ba702 /eclass
parentpython-utils-r1.eclass: Inline python_is_installed (diff)
downloadgentoo-1788cb332f8137aba445ab4b0fb57b855e86941e.tar.gz
gentoo-1788cb332f8137aba445ab4b0fb57b855e86941e.tar.bz2
gentoo-1788cb332f8137aba445ab4b0fb57b855e86941e.zip
distutils-r1.eclass: Fix has_version for distutils_enable_sphinx
Fix the has_version calls for distutils_enable_sphinx to use -b option (--host-root in earlier EAPIs). Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 409abcf646a9..0507551897b9 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -426,9 +426,13 @@ distutils_enable_sphinx() {
python_check_deps() {
use doc || return 0
+
+ local hasv_args=( -b )
+ [[ ${EAPI} == 6 ]] && hasv_args=( --host-root )
local p
for p in dev-python/sphinx "${_DISTUTILS_SPHINX_PLUGINS[@]}"; do
- has_version "${p}[${PYTHON_USEDEP}]" || return 1
+ has_version "${hasv_args[@]}" "${p}[${PYTHON_USEDEP}]" ||
+ return 1
done
}
else