[med-svn] [python-multipletau] 09/10: d/rules: workaround for the lintian's privacy-breach-generic warning for external link for mathjax, see #739300 for details d/python-multipletau-doc.install: install examples

Alex Mestiashvili malex-guest at moszumanska.debian.org
Tue Dec 15 17:11:46 UTC 2015


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

malex-guest pushed a commit to branch master
in repository python-multipletau.

commit 62763fffa3fd7a35e4846711e93b4fb36a947bfe
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Tue Dec 15 17:20:50 2015 +0100

    d/rules: workaround for the lintian's privacy-breach-generic warning for
     external link for mathjax, see #739300 for details
    d/python-multipletau-doc.install: install examples
---
 debian/python-multipletau-doc.install |  1 +
 debian/rules                          | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/debian/python-multipletau-doc.install b/debian/python-multipletau-doc.install
new file mode 100644
index 0000000..7b1ff78
--- /dev/null
+++ b/debian/python-multipletau-doc.install
@@ -0,0 +1 @@
+examples/noise_generator.py usr/share/doc/python-multipletau/examples
diff --git a/debian/rules b/debian/rules
index ffcb622..9417cfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ export PYBUILD_NAME=multipletau
 override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/ build/html
+	# see d/patches/packaged-mathjax.path 
+	# Link mathjax in _static
+	ln -s /usr/share/javascript/mathjax \
+		build/html/_static/mathjax
 
 override_dh_auto_test:
 	dh_auto_test -- --system=custom --test-args="nosetests -v $(CURDIR)/tests"
@@ -15,3 +19,9 @@ override_dh_auto_test:
 override_dh_installdocs:
 	dh_installdocs -ppython-multipletau-doc build/html
 	dh_installdocs -A
+
+override_dh_sphinxdoc:
+	# dh_link creates the link for mathjax after dh_sphinxdoc, so ignore
+	# MathJax.js
+	dh_sphinxdoc -XMathJax.js
+

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



More information about the debian-med-commit mailing list