From 58c8bfe75380c2ee54b54f65af9c66ba44ae518c Mon Sep 17 00:00:00 2001 From: aviau Date: Thu, 6 Sep 2018 15:04:36 -0400 Subject: [PATCH] d/rules: override_dh_sphinxdoc --- debian/changelog | 1 + debian/python-click-doc.docs | 1 - debian/rules | 14 +++++--------- 3 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 debian/python-click-doc.docs diff --git a/debian/changelog b/debian/changelog index 1a80059..54d5a88 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ python-click (6.7+git20180829-1) UNRELEASED; urgency=medium * Remove unneeded patches. * Depend on python3-pallets-sphinx-themes. * d/rules: no longer clean artwork/. + * d/rules: override_dh_sphinxdoc. -- Alexandre Viau Thu, 06 Sep 2018 14:55:26 -0400 diff --git a/debian/python-click-doc.docs b/debian/python-click-doc.docs deleted file mode 100644 index 4ecc793..0000000 --- a/debian/python-click-doc.docs +++ /dev/null @@ -1 +0,0 @@ -docs/_build/html diff --git a/debian/rules b/debian/rules index 6285513..d2a9fe2 100755 --- a/debian/rules +++ b/debian/rules @@ -12,12 +12,8 @@ export SOURCE = $(CURDIR)/debian/ %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild -override_dh_auto_clean: - dh_auto_clean - $(MAKE) -C docs clean - -override_dh_auto_build: export http_proxy=127.0.0.1:9 -override_dh_auto_build: export https_proxy=127.0.0.1:9 -override_dh_auto_build: - dh_auto_build - $(MAKE) -C docs clean html +override_dh_sphinxdoc: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + http_proxy='http://127.0.0.1:9/' PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/ + dh_sphinxdoc +endif