[Python-modules-commits] [python-latexcodec] 11/20: Build the docs using the upstream Makefile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 13 15:34:48 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-latexcodec.

commit 41bf199bb450d8f5e2af6a4adb2b34d507c417e0
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jul 12 09:36:04 2017 +0100

    Build the docs using the upstream Makefile
---
 debian/python-latexcodec-doc.docs              |  1 +
 debian/python-latexcodec-doc.lintian-overrides |  2 ++
 debian/rules                                   | 16 ++++++++++------
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/debian/python-latexcodec-doc.docs b/debian/python-latexcodec-doc.docs
new file mode 100644
index 0000000..7123782
--- /dev/null
+++ b/debian/python-latexcodec-doc.docs
@@ -0,0 +1 @@
+doc/_build/html
diff --git a/debian/python-latexcodec-doc.lintian-overrides b/debian/python-latexcodec-doc.lintian-overrides
new file mode 100644
index 0000000..1718578
--- /dev/null
+++ b/debian/python-latexcodec-doc.lintian-overrides
@@ -0,0 +1,2 @@
+# This file is part of the upstream documentation.
+extra-license-file
diff --git a/debian/rules b/debian/rules
index 46ac79a..f9682c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,17 +3,21 @@
 #export DEB_BUILD_OPTIONS=nocheck
 export PYBUILD_NAME=latexcodec
 
-DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u -f- +%F)
-
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+override_dh_auto_clean:
+	dh_auto_clean
+	$(MAKE) -C doc 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
+	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
+
 override_dh_auto_test:
 	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m nose -v" dh_auto_test
 
-override_dh_installdocs:
-	dh_installdocs
-	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -D today_fmt="$(DEBDATE)" -N -bhtml doc/ debian/python-latexcodec-doc/usr/share/doc/python-latexcodec-doc/html/
-
 override_dh_installchangelogs:
 	dh_installchangelogs -A CHANGELOG.rst

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-latexcodec.git



More information about the Python-modules-commits mailing list