dev-python/dbus-python: only pass --enable-documentation with USE=doc

This showed up on the binhost builder today [0]. We only call python_setup
conditionally, so match the condition below too.

[0] https://public-inbox.gentoo.org/gentoo-binhost-autobuilds/20250604145325.BDF30749FB7@milou.amd64.dev.gentoo.org/

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-06-05 12:54:56 +01:00
parent fb434368fe
commit 49b87bef23

View File

@@ -69,7 +69,7 @@ src_configure() {
# https://bugs.gentoo.org/815136
PYTHON_EXTRA_LIBS=' '
)
[[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
use doc && [[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
myconf+=( --enable-documentation )
econf "${myconf[@]}"