[sfepy] 01/03: Fix latex_preamble FTBFS. (Closes: #878369)

Anton Gladky gladk at moszumanska.debian.org
Mon Oct 16 21:24:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository sfepy.

commit 45a07e66c616821745c2654038bab6bd2b1f9903
Author: Dmitry Shachnev <mitya57 at debian.org>
Date:   Mon Oct 16 23:08:24 2017 +0200

    Fix latex_preamble FTBFS. (Closes: #878369)
---
 ...tics.patch => 10_remove_google_analytics.patch} |  0
 debian/patches/20_sphinx1.6_preamble.patch         | 37 ++++++++++++++++++++++
 debian/patches/series                              |  3 +-
 3 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/debian/patches/01_remove_google_analytics.patch b/debian/patches/10_remove_google_analytics.patch
similarity index 100%
rename from debian/patches/01_remove_google_analytics.patch
rename to debian/patches/10_remove_google_analytics.patch
diff --git a/debian/patches/20_sphinx1.6_preamble.patch b/debian/patches/20_sphinx1.6_preamble.patch
new file mode 100644
index 0000000..b08ad88
--- /dev/null
+++ b/debian/patches/20_sphinx1.6_preamble.patch
@@ -0,0 +1,37 @@
+Description: Updated conf.py to new LaTeX customization scheme
+Origin: upstream, https://github.com/sfepy/sfepy/commit/8fb2189c3a9a9aec
+Last-Update: 2017-10-13
+
+Index: sfepy/doc/conf.py
+===================================================================
+--- sfepy.orig/doc/conf.py
++++ sfepy/doc/conf.py
+@@ -214,7 +214,8 @@ latex_documents = [
+ 
+ # Additional stuff for the LaTeX preamble.
+ #latex_preamble = ''
+-latex_preamble = r"""
++latex_elements = {
++    'preamble': r'''
+ \usepackage{bm}
+ \usepackage{amsfonts}
+ \def\dt{{\Delta t}}
+@@ -244,7 +245,8 @@ latex_preamble = r"""
+ \def\vb{\bm{v}}
+ \def\Mb{\bm{M}}
+ \def\vphib{\bm{\varphi}}
+-"""
++''',
++}
+ # LS: Are the following needed as well?
+ #\def\Vcal{\mathcal{V}}
+ #\def\Tcal{\mathcal{T}}
+@@ -258,7 +260,7 @@ latex_preamble = r"""
+ #latex_use_modindex = True
+ 
+ # Preamble for pngmath images
+-pngmath_latex_preamble = latex_preamble
++pngmath_latex_preamble = latex_elements['preamble']
+ 
+ # Turn off numpydoc autosummary tables
+ numpydoc_show_class_members = False
diff --git a/debian/patches/series b/debian/patches/series
index b4e6505..4bf49ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
-01_remove_google_analytics.patch
+10_remove_google_analytics.patch
+20_sphinx1.6_preamble.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sfepy.git



More information about the debian-science-commits mailing list