commit:     1e1b042f6b04458d66d5a085bf8c1efcf45e95b6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 01:18:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 01:20:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1b042f
dev-python/wand: fix build w/ sphinx 6

Closes: https://bugs.gentoo.org/889906
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/wand/files/wand-0.6.11-sphinx-6.patch | 29 ++++++++++++++++++++++++
 dev-python/wand/wand-0.6.11.ebuild               |  4 ++++
 2 files changed, 33 insertions(+)

diff --git a/dev-python/wand/files/wand-0.6.11-sphinx-6.patch 
b/dev-python/wand/files/wand-0.6.11-sphinx-6.patch
new file mode 100644
index 000000000000..4da4354e67ca
--- /dev/null
+++ b/dev-python/wand/files/wand-0.6.11-sphinx-6.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/889906
+https://github.com/emcconville/wand/commit/460f605f45d406b6d0e2f3e6af7bfa2c62c66882
+
+From 460f605f45d406b6d0e2f3e6af7bfa2c62c66882 Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.lo...@gmail.com>
+Date: Sat, 14 Jan 2023 22:30:03 +0100
+Subject: [PATCH] docs: fix build with Sphinx 6.0.0
+
+See 
https://github.com/sphinx-doc/sphinx/commit/93cf1a57d916a1ff96c8e8a0356d0256e40489ac
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -263,11 +263,11 @@ def __repr__(self):
+ intersphinx_mapping = {'http://docs.python.org/': None}
+ 
+ extlinks = {
+-    'issue': ('https://github.com/emcconville/wand/issues/%s', '#'),
+-    'pull': ('https://github.com/emcconville/wand/pull/%s', '!'),
+-    'branch': ('https://github.com/emcconville/wand/compare/master...%s', ''),
+-    'commit': ('https://github.com/emcconville/wand/commit/%s', ''),
+-    'cli': ('https://imagemagick.org/script/command-line-options.php#%s', 
'-'),
++    'issue': ('https://github.com/emcconville/wand/issues/%s', '#%s'),
++    'pull': ('https://github.com/emcconville/wand/pull/%s', '!%s'),
++    'branch': ('https://github.com/emcconville/wand/compare/master...%s', 
'%s'),
++    'commit': ('https://github.com/emcconville/wand/commit/%s', '%s'),
++    'cli': ('https://imagemagick.org/script/command-line-options.php#%s', 
'-%s'),
+ }
+ 
+ # fall back if theme is not there
+

diff --git a/dev-python/wand/wand-0.6.11.ebuild 
b/dev-python/wand/wand-0.6.11.ebuild
index cb0ffa456453..13b137e5a7a5 100644
--- a/dev-python/wand/wand-0.6.11.ebuild
+++ b/dev-python/wand/wand-0.6.11.ebuild
@@ -31,6 +31,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-sphinx-6.patch
+)
+
 distutils_enable_sphinx docs
 distutils_enable_tests pytest
 

Reply via email to