File: replace-pngmath-with-imgmath.patch

package info (click to toggle)
morse-simulator 1.4-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 187,116 kB
  • sloc: ansic: 108,311; python: 25,694; cpp: 786; makefile: 126; xml: 34; sh: 7
file content (19 lines) | stat: -rw-r--r-- 959 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Replace deprecated Sphinx module pngmath with imgmath
 morse-simulator used the deprecated and later removed Sphinx extension
 pngmath. This caused a FTBFS with newer Sphinx versions. pngmath can
 be replaced with imgmath.
Author: Micha David Rosenbaum <micha@rosetree.de>
Bug-Debian: https://bugs.debian.org/921897
Last-Update: 2019-02-10

--- morse-simulator-1.4.orig/doc/conf.py.in
+++ morse-simulator-1.4/doc/conf.py.in
@@ -26,7 +26,7 @@ sys.path.append('@CMAKE_CURRENT_SOURCE_D
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.

 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.viewcode', 'tag', 'examples']
-extensions.append('sphinx.ext.pngmath')
+extensions.append('sphinx.ext.imgmath')

 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['@CMAKE_CURRENT_SOURCE_DIR@/doc/morse-theme/templates', '@CMAKE_CURRENT_SOURCE_DIR@/doc/sphinxext']