summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-13 10:09:45 +0000
committerSam James <sam@gentoo.org>2023-01-13 10:17:35 +0000
commit12060cd5c0c006aa3f6f9a509fadc91095699e7a (patch)
tree620793e9c202fbb1ba3dcbdebf4f03ac56ab1e69 /dev-python/Babel
parentdev-libs/simdjson: Stabilize 3.0.0 amd64, #887507 (diff)
downloadgentoo-12060cd5c0c006aa3f6f9a509fadc91095699e7a.tar.gz
gentoo-12060cd5c0c006aa3f6f9a509fadc91095699e7a.tar.bz2
gentoo-12060cd5c0c006aa3f6f9a509fadc91095699e7a.zip
dev-python/Babel: fix build w/ sphinx 6
Closes: https://bugs.gentoo.org/890180 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/Babel')
-rw-r--r--dev-python/Babel/Babel-2.11.0.ebuild6
-rw-r--r--dev-python/Babel/files/Babel-2.11.0-sphinx-6.patch29
2 files changed, 34 insertions, 1 deletions
diff --git a/dev-python/Babel/Babel-2.11.0.ebuild b/dev-python/Babel/Babel-2.11.0.ebuild
index e2e44b4ca402..cbf4d2700b28 100644
--- a/dev-python/Babel/Babel-2.11.0.ebuild
+++ b/dev-python/Babel/Babel-2.11.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -41,6 +41,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${P}-sphinx-6.patch
+)
+
distutils_enable_sphinx docs
distutils_enable_tests pytest
diff --git a/dev-python/Babel/files/Babel-2.11.0-sphinx-6.patch b/dev-python/Babel/files/Babel-2.11.0-sphinx-6.patch
new file mode 100644
index 000000000000..147ebeebd4fa
--- /dev/null
+++ b/dev-python/Babel/files/Babel-2.11.0-sphinx-6.patch
@@ -0,0 +1,29 @@
+https://github.com/python-babel/babel/commit/f7af1b72e765278b3431de3f3b92c6b9a189b18e
+
+From f7af1b72e765278b3431de3f3b92c6b9a189b18e Mon Sep 17 00:00:00 2001
+From: Aarni Koskela <akx@iki.fi>
+Date: Wed, 2 Nov 2022 08:25:47 +0200
+Subject: [PATCH] Update docs build configuration (#924)
+
+* Use Python 3.11
+* Use Sphinx 5 (and update extlinks configuration)
+* Use Python 3 intersphinx mapping
+* Install Babel from the build directory
+
+Refs https://github.com/python-babel/babel/issues/920
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -251,10 +251,10 @@
+ #texinfo_show_urls = 'footnote'
+
+ intersphinx_mapping = {
+- 'https://docs.python.org/2/': None,
++ 'https://docs.python.org/3/': None,
+ }
+
+ extlinks = {
+- 'gh': ('https://github.com/python-babel/babel/issues/%s', '#'),
+- 'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #'),
++ 'gh': ('https://github.com/python-babel/babel/issues/%s', '#%s'),
++ 'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #%s'),
+ }