summaryrefslogtreecommitdiff
path: root/eclass/toolchain.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-14 06:50:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-14 06:50:14 +0000
commitafa8da78d8135ca28150730e9c60af9d875f0a5b (patch)
tree65e94479f29d7591a1bc1d09d1fc1913d785fe6b /eclass/toolchain.eclass
parent4828c25c25aacf399de429d381288982fd7e0d0e (diff)
gentoo auto-resync : 14:11:2022 - 06:50:13
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass19
1 files changed, 17 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 2bed15110ece..4b96a087352c 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -100,6 +100,12 @@ tc_version_is_between() {
# @DESCRIPTION:
# Indicate the developer who hosts the patchset for an ebuild.
+# @ECLASS_VARIABLE: TOOLCHAIN_SPHINX_BUILD
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Indicate if Sphinx is needed for this build. Enabled by default for
+# >= 13.*.9999 (this is when upstream changed their docs from texinfo->sphinx).
+
# @ECLASS_VARIABLE: GCC_PV
# @INTERNAL
# @DESCRIPTION:
@@ -289,7 +295,8 @@ fi
#---->> DEPEND <<----
-RDEPEND="sys-libs/zlib
+RDEPEND="
+ sys-libs/zlib
virtual/libiconv
nls? ( virtual/libintl )
"
@@ -320,10 +327,18 @@ BDEPEND="
test? (
>=dev-util/dejagnu-1.4.4
>=sys-devel/autogen-5.5.4
- )"
+ )
+"
DEPEND="${RDEPEND}"
+# Snapshots don't contain info or man pages.
if [[ ${PN} == gcc && ${PV} == *_p* ]] ; then
+ # >= GCC 13 needs sphinx to generate the info and man pages.
+ # It still uses texinfo as well.
+ if [[ -n ${TOOLCHAIN_SPHINX_BUILD} ]] ; then
+ BDEPEND+=" dev-python/sphinx"
+ fi
+
# Snapshots don't contain info pages.
# If they start to, adjust gcc_cv_prog_makeinfo_modern logic in toolchain_src_configure.
# Needed unless/until https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106899 is fixed