[python-dtcwt] 02/09: d/rules: simplify doc install targets.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 27 17:37:41 UTC 2016


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 7d7de7d852c04b17fa25b1f7d1cb0a0c618c7fc9
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jan 27 14:54:25 2016 +0000

    d/rules: simplify doc install targets.
---
 debian/python-dtcwt-doc.links | 1 +
 debian/rules                  | 9 +--------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/debian/python-dtcwt-doc.links b/debian/python-dtcwt-doc.links
new file mode 100644
index 0000000..6b1ad90
--- /dev/null
+++ b/debian/python-dtcwt-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/mathjax/MathJax.js usr/share/doc/python-dtcwt/html/_static/MathJax.js
diff --git a/debian/rules b/debian/rules
index 462a097..8b0fbd7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,6 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=dtcwt
-DOCPKG=python-$(PYBUILD_NAME)-doc
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -20,10 +19,4 @@ override_dh_auto_test:
 endif
 
 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
-
+	dh_sphinxdoc --exclude=MathJax.js

-- 
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