commit:     00f6a1521d0cf73ac158184bf7795ae0aede97c3
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  6 22:40:46 2025 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 22:40:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f6a152

sys-kernel/linux-docs: Change docutils dependency

Require docutils < 0.22 while waiting for proper
upstream fix.

Closes: https://bugs.gentoo.org/962349

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 sys-kernel/linux-docs/linux-docs-6.16.4-r1.ebuild | 46 +++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/sys-kernel/linux-docs/linux-docs-6.16.4-r1.ebuild 
b/sys-kernel/linux-docs/linux-docs-6.16.4-r1.ebuild
new file mode 100644
index 000000000000..88284a2cb2d7
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-6.16.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{11,12,13} )
+inherit linux-info python-any-r1 toolchain-funcs
+
+MY_P=linux-${PV}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="https://www.kernel.org/";
+SRC_URI="https://www.kernel.org/pub/linux/kernel/v6.x/${MY_P}.tar.xz";
+
+S=${WORKDIR}/${MY_P}
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="graphviz"
+
+RDEPEND="graphviz? ( >=media-gfx/graphviz-5.0.0 )"
+
+BDEPEND="${PYTHON_DEPS}
+       >=dev-python/sphinx-7.2.3
+       dev-python/sphinx-rtd-theme
+       media-libs/fontconfig
+       <=dev-python/docutils-0.21.2
+       $(python_gen_any_dep '
+               >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
+       ')"
+
+src_prepare() {
+       default
+       # Fix the Python shebangs.
+       python_fix_shebang "${S}/Documentation/sphinx/"
+}
+
+src_compile() {
+       local ARCH="$(tc-arch-kernel)"
+       unset KBUILD_OUTPUT
+       HTML_DOCS=( Documentation/output/. )
+       emake htmldocs
+}
+
+src_install() {
+       einstalldocs
+}

Reply via email to