[pytables] 12/15: Use local mathjax

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Fri Jun 30 18:07:43 UTC 2017


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

a_valentino-guest pushed a commit to branch master
in repository pytables.

commit 0e116d91ffde3d6fc3adc781afe633d6c8bef44a
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Thu Jun 29 05:35:17 2017 +0000

    Use local mathjax
---
 debian/changelog                            |  2 ++
 debian/control                              |  1 +
 debian/patches/0003-use-local-mathjax.patch | 19 +++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/rules                                |  6 ++++--
 5 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e9d7108..2cf6f9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,10 +10,12 @@ pytables (3.4.2-1) UNRELEASED; urgency=medium
       0005-Ignore-cpuinfo-on-unsupported-archs.patch and
       0006-allow-for-long-type-in-nextafter: applied upstream
     - refresh remainimg patches
+    - new 0003-use-local-mathjax.patch
   * Updated copyright file
   * debian/control
     - add build dependency from python(3)-sphinx-rtd-theme,
       python(3)-ipython and python(3)-numpydoc
+    - add dependency from libjs-mathjax
   * Remove -dbg packages (now they are built automatically)
   * debian/rules
     - no longer use dpkg-parsechangelog to determine the current
diff --git a/debian/control b/debian/control
index 34b2bfc..42fe011 100644
--- a/debian/control
+++ b/debian/control
@@ -34,6 +34,7 @@ Build-Depends: debhelper (>= 9.0.0),
                texlive-latex-extra,
                texlive-fonts-recommended,
                libjs-jquery-cookie,
+               libjs-mathjax,
                python-sphinx-rtd-theme,
                python3-sphinx-rtd-theme,
                python-ipython,
diff --git a/debian/patches/0003-use-local-mathjax.patch b/debian/patches/0003-use-local-mathjax.patch
new file mode 100644
index 0000000..bf2921e
--- /dev/null
+++ b/debian/patches/0003-use-local-mathjax.patch
@@ -0,0 +1,19 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Thu, 29 Jun 2017 05:31:26 +0000
+Subject: use local mathjax
+
+---
+ doc/source/conf.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 013ab5d..cbe9f60 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -260,3 +260,6 @@ extlinks = {
+     'issue': ('https://github.com/PyTables/PyTables/issues/%s', 'gh-'),
+     'irc': ('http://pytables.github.io/irc/%s.html', ''),
+ }
++
++mathjax_path='MathJax.js'
++
diff --git a/debian/patches/series b/debian/patches/series
index 4af95aa..4e2591e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-use-dynamic-lib.patch
 0002-Never-use-the-msse2-flag-explicitly.patch
+0003-use-local-mathjax.patch
diff --git a/debian/rules b/debian/rules
index cbc83a8..073288a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -71,12 +71,14 @@ override_dh_install:
 	# duplicate files in doc
 	rm -f debian/tmp/usr/share/doc/python-tables-doc/examples/simple_threading.py
 	rm -f debian/tmp/usr/share/doc/python-tables-doc/examples/threading_monkeypatch.py
-	dh_link -p python-tables-doc usr/share/python-tables-doc//html/_downloads/simple_threading.py usr/share/python-tables-doc/examples/simple_threading.py
-	dh_link -p python-tables-doc usr/share/python-tables-doc//html/_downloads/threading_monkeypatch.py usr/share/python-tables-doc/examples/threading_monkeypatch.py
+	dh_link -p python-tables-doc usr/share/doc/python-tables-doc/html/_downloads/simple_threading.py usr/share/doc/python-tables-doc/examples/simple_threading.py
+	dh_link -p python-tables-doc usr/share/doc/python-tables-doc/html/_downloads/threading_monkeypatch.py usr/share/doc/python-tables-doc/examples/threading_monkeypatch.py
 
 	rm -f usr/share/doc/python-tables-doc/html/_sources/release-notes/RELEASE_NOTES_v2.1.x-pro.txt
 	dh_link -p python-tables-doc  usr/share/doc/python-tables-doc/html/_sources/release-notes/RELEASE_NOTES_v2.1.x-pro.txt usr/share/doc/python-tables-doc/html/_sources/release-notes/RELEASE_NOTES_v2.1.x.txt
 
+	# mathjs
+	dh_link -ppython-tables-doc /usr/share/javascript/mathjax/MathJax.js /usr/share/doc/python-tables-doc/html/_static/MathJax.js
 	# link data files
 	for py in $(PY2VERS); do \
 		for f in debian/tmp/usr/lib/python2*/*-packages/tables/tests/*.h5 \

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



More information about the debian-science-commits mailing list