summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2023-10-24 00:36:21 +0200
committerMichał Górny <mgorny@gentoo.org>2023-10-27 17:16:10 +0200
commit882de9d193960b387fe934c8afa13a90178fa9b3 (patch)
treedd9a0854f2d9ade9376572437ad8180c4beb3a9d /dev-python/musicbrainzngs
parentprofiles/updates: Add reverse entries for reverted renames (diff)
downloadgentoo-882de9d193960b387fe934c8afa13a90178fa9b3.tar.gz
gentoo-882de9d193960b387fe934c8afa13a90178fa9b3.tar.bz2
gentoo-882de9d193960b387fe934c8afa13a90178fa9b3.zip
dev-python/musicbrainzngs: fix build with sphinx-6
Closes: https://bugs.gentoo.org/892381 Signed-off-by: Gerion Entrup <gerion.entrup@flump.de> Closes: https://github.com/gentoo/gentoo/pull/33480 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/musicbrainzngs')
-rw-r--r--dev-python/musicbrainzngs/files/musicbrainzngs-0.7.1-fix-sphinx-build.patch27
-rw-r--r--dev-python/musicbrainzngs/musicbrainzngs-0.7.1-r1.ebuild4
2 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/musicbrainzngs/files/musicbrainzngs-0.7.1-fix-sphinx-build.patch b/dev-python/musicbrainzngs/files/musicbrainzngs-0.7.1-fix-sphinx-build.patch
new file mode 100644
index 000000000000..b6196685cdea
--- /dev/null
+++ b/dev-python/musicbrainzngs/files/musicbrainzngs-0.7.1-fix-sphinx-build.patch
@@ -0,0 +1,27 @@
+From ce3e2ddb36630f615076caac223c6c6985a3dc53 Mon Sep 17 00:00:00 2001
+From: Gerion Entrup <entrup@sra.uni-hannover.de>
+Date: Tue, 24 Oct 2023 00:27:58 +0200
+Subject: [PATCH] docs/conf.py: fix doc building with Sphinx >6
+
+See https://github.com/sphinx-doc/sphinx/pull/10471/commits/97e3fd8b85692768ff3ceb3885ad59836ceeb7b5#diff-437b1b031f7488e4c051cd111e665fe4b514cba5c64b9f2f23b9cd04aacd89bb
+and https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html.
+---
+ docs/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index d5ec2b0..4b68e9f 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -90,7 +90,7 @@ pygments_style = 'sphinx'
+ #modindex_common_prefix = []
+
+ extlinks = {
+- 'musicbrainz': ('https://musicbrainz.org/doc/%s', ''),
++ 'musicbrainz': ('https://musicbrainz.org/doc/%s', '%s'),
+ }
+
+ intersphinx_mapping = {
+--
+2.41.0
+
diff --git a/dev-python/musicbrainzngs/musicbrainzngs-0.7.1-r1.ebuild b/dev-python/musicbrainzngs/musicbrainzngs-0.7.1-r1.ebuild
index 16c5b836b431..c0d38a09f5c1 100644
--- a/dev-python/musicbrainzngs/musicbrainzngs-0.7.1-r1.ebuild
+++ b/dev-python/musicbrainzngs/musicbrainzngs-0.7.1-r1.ebuild
@@ -25,6 +25,10 @@ SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="examples"
+PATCHES=(
+ "${FILESDIR}/${P}-fix-sphinx-build.patch"
+)
+
distutils_enable_sphinx docs
distutils_enable_tests unittest