commit:     9f0dc63ceeb5b7de8f50983e4e65b92812491458
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  1 10:07:20 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec  1 10:07:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f0dc63c

dev-python/sphinx: fix USE=doc

Thanks-to: Dirk Sondermann <ds-gentoo <AT> dyximaq.de>
Closes: https://bugs.gentoo.org/728810
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/sphinx/files/sphinx-3.3.1-doc-link.patch | 14 ++++++++++++++
 dev-python/sphinx/sphinx-3.3.1.ebuild               |  4 ++++
 2 files changed, 18 insertions(+)

diff --git a/dev-python/sphinx/files/sphinx-3.3.1-doc-link.patch 
b/dev-python/sphinx/files/sphinx-3.3.1-doc-link.patch
new file mode 100644
index 00000000000..0c1b2ad7d98
--- /dev/null
+++ b/dev-python/sphinx/files/sphinx-3.3.1-doc-link.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/728810
+--- ./doc/internals/release-process.rst
++++ ./doc/internals/release-process.rst
+@@ -97,8 +97,8 @@
+ * ``set PYTHONWARNINGS=`` and do ``make html`` (Windows)
+ 
+ But you can also explicitly enable the pending ones using e.g.
+-``PYTHONWARNINGS=default`` (see the :ref:`Python docs on configuring warnings
+-<python:describing-warning-filters>`) for more details.
++``PYTHONWARNINGS=default`` (see the `Python docs on configuring warnings
++<https://docs.python.org/3/library/warnings.html#describing-warning-filters>`_)
 for more details.
+ 
+ Release procedures
+ ------------------

diff --git a/dev-python/sphinx/sphinx-3.3.1.ebuild 
b/dev-python/sphinx/sphinx-3.3.1.ebuild
index f29129962d6..f77fc4923c6 100644
--- a/dev-python/sphinx/sphinx-3.3.1.ebuild
+++ b/dev-python/sphinx/sphinx-3.3.1.ebuild
@@ -62,6 +62,10 @@ BDEPEND="
 
 S="${WORKDIR}/${P^}"
 
+PATCHES=(
+       "${FILESDIR}/${PN}-3.3.1-doc-link.patch"
+)
+
 python_prepare_all() {
        # remove tests that fail due to network-sandbox
        rm tests/test_build_linkcheck.py || die "Failed to remove web tests"

Reply via email to