diff --git a/srcpkgs/mopidy/patches/new-sphinx.patch b/srcpkgs/mopidy/patches/new-sphinx.patch new file mode 100644 index 00000000000..ae9b5cc1dd5 --- /dev/null +++ b/srcpkgs/mopidy/patches/new-sphinx.patch @@ -0,0 +1,37 @@ +From 1b7330884b996e13944e9680b0c0d01f4907b6b5 Mon Sep 17 00:00:00 2001 +From: Stein Magnus Jodal +Date: Sun, 19 Mar 2023 01:52:12 +0100 +Subject: [PATCH] Fix extlinks crash in docs build + +Ref https://github.com/sphinx-doc/sphinx/issues/11094 +--- + docs/conf.py | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +diff --git a/docs/conf.py b/docs/conf.py +index f17b3c9ae..58bfa70b3 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -131,14 +131,17 @@ def setup(app): + # -- Options for extlink extension -------------------------------------------- + + extlinks = { +- "issue": ("https://github.com/mopidy/mopidy/issues/%s", "#"), +- "commit": ("https://github.com/mopidy/mopidy/commit/%s", "commit "), +- "js": ("https://github.com/mopidy/mopidy.js/issues/%s", "mopidy.js#"), ++ "issue": ("https://github.com/mopidy/mopidy/issues/%s", "#%s"), ++ "commit": ("https://github.com/mopidy/mopidy/commit/%s", "commit %s"), ++ "js": ("https://github.com/mopidy/mopidy.js/issues/%s", "mopidy.js#%s"), + "mpris": ( + "https://github.com/mopidy/mopidy-mpris/issues/%s", +- "mopidy-mpris#", ++ "mopidy-mpris#%s", ++ ), ++ "discuss": ( ++ "https://discourse.mopidy.com/t/%s", ++ "discourse.mopidy.com/t/%s", + ), +- "discuss": ("https://discourse.mopidy.com/t/%s", "discourse.mopidy.com/t/"), + } + + diff --git a/srcpkgs/mopidy/template b/srcpkgs/mopidy/template index 292354f84fa..e5a3dbf917a 100644 --- a/srcpkgs/mopidy/template +++ b/srcpkgs/mopidy/template @@ -31,11 +31,10 @@ post_install() { vbin extra/mopidyctl/mopidyctl vman extra/mopidyctl/mopidyctl.8 python3 setup.py build - python3 setup.py build_sphinx -b man - python3 setup.py build_sphinx -b html - vman build/sphinx/man/mopidy.1 + make -C docs html man + vman docs/_build/man/mopidy.1 vmkdir usr/share/doc/mopidy/ - cp -r build/sphinx/html/* ${DESTDIR}/usr/share/doc/mopidy/ + cp -r docs/_build/html/* ${DESTDIR}/usr/share/doc/mopidy/ vinstall ${FILESDIR}/mopidy.conf 644 etc/mopidy/ vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/ vsv mopidy