[med-svn] [python-ruffus] 01/02: Use Debian packaged mathjax

Andreas Tille tille at debian.org
Thu Jun 9 10:16:19 UTC 2016


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

tille pushed a commit to branch master
in repository python-ruffus.

commit 0f9a94f9c44906edbed337ad6f2059297ff4cf39
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jan 15 15:15:17 2016 +0100

    Use Debian packaged mathjax
---
 debian/changelog                       |  2 ++
 debian/patches/series                  |  1 +
 debian/patches/use_libjs-mathjax.patch | 15 +++++++++++++++
 debian/rules                           |  6 +++---
 4 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dc0cc9c..1157d08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ python-ruffus (2.6.3+dfsg-2) unstable; urgency=medium
   * Fix issue in test when using Python 3.5 (Thanks for the hints to
     Dmitry Shachnev <mitya57 at debian.org>)
     Closes: #811002
+  * Use Debian packaged mathjax (Thanks to Dmitry Shachnev <mitya57 at debian.org>
+    for the hint)
 
  -- Andreas Tille <tille at debian.org>  Fri, 15 Jan 2016 10:08:16 +0100
 
diff --git a/debian/patches/series b/debian/patches/series
index ca43be3..25a9472 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix_test.patch
 python-3.5.patch
+use_libjs-mathjax.patch
diff --git a/debian/patches/use_libjs-mathjax.patch b/debian/patches/use_libjs-mathjax.patch
new file mode 100644
index 0000000..f6b2cd6
--- /dev/null
+++ b/debian/patches/use_libjs-mathjax.patch
@@ -0,0 +1,15 @@
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Last-Update: Fri, 15 Jan 2016 15:14:14 +0300
+Description: Use Debian packaged mathjax
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -32,6 +32,8 @@ import ruffus, ruffus.task, ruffus.ruffu
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
+               'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
+ 
++mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
++
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
+ 
diff --git a/debian/rules b/debian/rules
index fbbb7ae..7abd023 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,9 +20,9 @@ override_dh_installdocs:
 	dh_installdocs -ppython-ruffus-doc doc/_build/html
 	dh_installdocs -A
 
-override_dh_sphinxdoc:
-	dh_sphinxdoc
-	find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
+#override_dh_sphinxdoc:
+#	dh_sphinxdoc
+#	find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
 
 override_dh_auto_test:
 	# cd ruffus/test && . $(CURDIR)/debian/tests/run-unit-test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-ruffus.git



More information about the debian-med-commit mailing list