mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
mopidy: fix build
This commit is contained in:
parent
33cf3a912e
commit
0a58a7e739
2 changed files with 40 additions and 4 deletions
37
srcpkgs/mopidy/patches/new-sphinx.patch
Normal file
37
srcpkgs/mopidy/patches/new-sphinx.patch
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
From 1b7330884b996e13944e9680b0c0d01f4907b6b5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stein Magnus Jodal <stein.magnus@jodal.no>
|
||||||
|
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/"),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,10 @@ post_install() {
|
||||||
vbin extra/mopidyctl/mopidyctl
|
vbin extra/mopidyctl/mopidyctl
|
||||||
vman extra/mopidyctl/mopidyctl.8
|
vman extra/mopidyctl/mopidyctl.8
|
||||||
python3 setup.py build
|
python3 setup.py build
|
||||||
python3 setup.py build_sphinx -b man
|
make -C docs html man
|
||||||
python3 setup.py build_sphinx -b html
|
vman docs/_build/man/mopidy.1
|
||||||
vman build/sphinx/man/mopidy.1
|
|
||||||
vmkdir usr/share/doc/mopidy/
|
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}/mopidy.conf 644 etc/mopidy/
|
||||||
vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/
|
vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/
|
||||||
vsv mopidy
|
vsv mopidy
|
||||||
|
|
Loading…
Add table
Reference in a new issue