[python-dtcwt] 487/497: d/rules: use symlink to mathjax

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:42 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit abb92517ea520c337e1c88f2740435398cbea5bf
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Jul 21 18:09:16 2015 +0100

    d/rules: use symlink to mathjax
---
 debian/rules | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/rules b/debian/rules
index aeaaaa7..6386a75 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,20 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=dtcwt
+DOCPKG=python-$(PYBUILD_NAME)-doc
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
+
+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-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list