From 0371d2dd94d86fda267361a3abda8a8dbff17d1e Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@gmail.com>
Date: Fri, 30 Nov 2018 13:55:52 +0100
Subject: [PATCH] [wip/py-dynamic-graph-v3] add patch-aa to fix compilation
 with sphinx >= 1.8

---
 py-dynamic-graph-v3/distinfo         |  1 +
 py-dynamic-graph-v3/patches/patch-aa | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 py-dynamic-graph-v3/patches/patch-aa

diff --git a/py-dynamic-graph-v3/distinfo b/py-dynamic-graph-v3/distinfo
index db9a71c1..1b1f1cc1 100644
--- a/py-dynamic-graph-v3/distinfo
+++ b/py-dynamic-graph-v3/distinfo
@@ -1,3 +1,4 @@
 SHA1 (dynamic-graph-python-3.2.0.tar.gz) = c4110eb6ccc9ad7f3d13639b7ac199e2a0f5b16a
 RMD160 (dynamic-graph-python-3.2.0.tar.gz) = ae28220ac3480dcd4c163ef009e02adb8d723f24
 Size (dynamic-graph-python-3.2.0.tar.gz) = 835505 bytes
+SHA1 (patch-aa) = 7d772724dd1923575bc122a69239294058b8e74f
diff --git a/py-dynamic-graph-v3/patches/patch-aa b/py-dynamic-graph-v3/patches/patch-aa
new file mode 100644
index 00000000..8646ca75
--- /dev/null
+++ b/py-dynamic-graph-v3/patches/patch-aa
@@ -0,0 +1,22 @@
+sphinx.ext.pngmath has been deprecated since 1.4 and removed in 1.8. It has been replaced by imgmath
+
+--- doc/sphinx/conf.py.in
++++ doc/sphinx/conf.py.in
+@@ -12,6 +12,7 @@
+ # serve to show the default.
+
+ import sys, os
++from sphinx import version_info as sphinx_version
+
+ # If extensions (or modules to document with autodoc) are in another directory,
+ # add these directories to sys.path here. If the directory is relative to the
+@@ -23,7 +24,8 @@ sys.path = [os.path.abspath('@CMAKE_SOURCE_DIR@/src')]+sys.path
+
+ # Add any Sphinx extension module names here, as strings. They can be extensions
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.pngmath']
++extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
++extensions.append('sphinx.ext.pngmath' if sphinx_version < (1, 4) else 'sphinx.ext.imgmath')
+
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
-- 
GitLab