[med-svn] [python-skbio] 08/09: Fix use of debian 's mathjax
Kevin Murray
daube-guest at moszumanska.debian.org
Mon Nov 30 02:37:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
daube-guest pushed a commit to branch master
in repository python-skbio.
commit a7dab45523e9d631b1994b3d3c951accda03d369
Author: Kevin Murray <spam at kdmurray.id.au>
Date: Mon Nov 30 13:33:02 2015 +1100
Fix use of debian 's mathjax
---
debian/patches/0005-Set-mathjax-path-to-debian-s-copy.patch | 2 +-
debian/rules | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/patches/0005-Set-mathjax-path-to-debian-s-copy.patch b/debian/patches/0005-Set-mathjax-path-to-debian-s-copy.patch
index de7e8c5..f9206e6 100644
--- a/debian/patches/0005-Set-mathjax-path-to-debian-s-copy.patch
+++ b/debian/patches/0005-Set-mathjax-path-to-debian-s-copy.patch
@@ -14,7 +14,7 @@ index cd40a43..b467954 100644
# 'sphinx.ext.intersphinx'
]
-+mathjax_path='/usr/share/javascript/mathjax/MathJax.js'
++mathjax_path='MathJax.js'
+
# Determine if the matplotlib has a recent enough version of the
# plot_directive.
diff --git a/debian/rules b/debian/rules
index 707245b..b1cb8d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=skbio
+DOCPKG=python-$(PYBUILD_NAME)-doc
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -20,3 +21,11 @@ override_dh_clean:
dh_clean
find ./skbio -name '*.so' -delete
rm -rf .eggs
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
+ dh_link --package=$(DOCPKG) \
+ /usr/share/javascript/mathjax/MathJax.js \
+ /usr/share/doc/$(DOCPKG)/html/_static/MathJax.js
+ dh_sphinxdoc --package=$(DOCPKG)
+endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-skbio.git
More information about the debian-med-commit
mailing list