[taurus] 05/06: refresh rules

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sat Aug 27 15:29:14 UTC 2016


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

picca pushed a commit to annotated tag debian/4.0.1+dfsg-1
in repository taurus.

commit 96f1a69e64e981874f80b9ea9f432ad0ff09dc5f
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sat Aug 27 14:54:04 2016 +0200

    refresh rules
---
 debian/rules | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/debian/rules b/debian/rules
index c01ae7a..81734ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,21 +8,13 @@ export PYBUILD_INSTALL_ARGS=--skip-build --no-doc
 %:
 	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
 
-override_dh_auto_clean:
-	dh_auto_clean
-	rm -rf build
-	rm -f lib/taurus/qt/qtgui/resource/*.rcc
-	rm -f lib/taurus/qt/qtgui/resource/*.qrc
-	rm -rf doc/source/devel/api
-	rm -f doc/source/devel/catalog.html
-	rm -f lib/taurus/qt/qtgui/resource/catalog.html
-	rm -f lib/taurus/qt/qtgui/graphic/jdraw/jdraw_lextab.py
-	rm -f lib/taurus/qt/qtgui/graphic/jdraw/jdraw_yacctab.py
-
-override_dh_auto_build:
-	dh_auto_build
-	PYBUILD_SYSTEM=custom \
-	PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' xvfb-run {interpreter} setup.py build_doc" dh_auto_build
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+        PYBUILD_SYSTEM=custom \
+        PYBUILD_BUILD_ARGS="cd doc && PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' xvfb-run {interpreter} -c \"import sys;from sphinx import main;sys.exit(main(sys.argv))\" -N -bhtml source build/html" dh_auto_build  # HTML generator
+        dh_installdocs "doc/build/html" -p python-taurus-doc
+        dh_sphinxdoc -O--buildsystem=pybuild
+endif
 
 override_dh_installdocs:
 	dh_installdocs

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



More information about the debian-science-commits mailing list