update packaging to use dh_sphinxdoc and dh_python2

requires search-html.patch to fix file so dh_sphinxdoc recognises it
This commit is contained in:
Julian Taylor
2013-06-10 21:21:21 +02:00
parent ce3a583313
commit 7e13028ca0
6 changed files with 30 additions and 20 deletions
+1 -7
View File
@@ -12,7 +12,7 @@ export HOME=$(CURDIR)/build
# Mega rule
%:
dh $@ --buildsystem python_distutils
dh $@ --with python2,sphinxdoc --buildsystem python_distutils
override_dh_clean:
ifeq (,$(filter noclean,$(DEB_BUILD_OPTIONS)))
@@ -38,12 +38,6 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
export PYTHONPATH=$(PACKAGE_ROOT_DIR)/usr/lib/python$*/dist-packages; \
cd doc; test -d build/html || $(MAKE) html
python$* setup.py install --install-layout=deb --root=$(PACKAGE_ROOT_DIR)
: # Use jquery and underscore from Debian package, so prune shipped one
-rm -f doc/build/html/_static/jquery.js
# Actually due to the problems with underscore pkg across releases just ship one for now
#-rm -f doc/build/html/_static/underscore.js
-rm -rf doc/build/html/_sources
-rm -f doc/build/html/.buildinfo
endif
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))