[Python-modules-commits] [sphinx] 01/01: Add support for nodoc build profile.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Tue Sep 26 14:15:59 UTC 2017


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

mitya57 pushed a commit to branch debian/master
in repository sphinx.

commit 1e51ddfa6bdf2ab48deb5e9d1cfc0745594a0d6d
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Tue Sep 26 17:15:51 2017 +0300

    Add support for nodoc build profile.
---
 debian/changelog | 1 +
 debian/control   | 2 ++
 debian/rules     | 6 ++++++
 3 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9b996e7..f0f1b08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ sphinx (1.6.4-1) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.1.0, no changes needed.
   * Use pkg-info.mk to retrieve the upstream version number.
   * Use python3 to build our own documentation.
+  * Add support for nodoc build profile.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Sat, 23 Sep 2017 17:17:32 +0300
 
diff --git a/debian/control b/debian/control
index 9ea2dc8..cbf132f 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Homepage: http://sphinx-doc.org/
 Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: dh-python,
   dh-strip-nondeterminism,
+  dpkg-dev (>= 1.17.14),
   python-all (>= 2.6.6-4~), python3-all (>= 3.3.3-1~),
   python-six (>= 1.5), python3-six (>= 1.5),
   python-setuptools (>= 0.6c5-1~), python3-setuptools,
@@ -124,6 +125,7 @@ Description: documentation generator for Python projects - common data
  files.
 
 Package: sphinx-doc
+Build-Profiles: <!nodoc>
 Section: doc
 Architecture: all
 Conflicts: python-sphinx (<< 1.1)
diff --git a/debian/rules b/debian/rules
index d724943..ee29fd8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,7 @@ build/javascript-stamp: $(addprefix sphinx/themes/basic/static/,jquery.js unders
 	touch $(@)
 
 build-stamp: sphinx-build.py build/javascript-stamp
+ifeq "$(filter nodoc,$(DEB_BUILD_OPTIONS))" ""
 	python3 ./sphinx-build.py -T doc build/html/
 	rm -f build/html/_static/jquery-*.js build/html/_static/underscore-*.js
 	find build/html/ -name '*.txt' -or -name '*.html' | xargs -L1 sed -i \
@@ -49,6 +50,7 @@ build-stamp: sphinx-build.py build/javascript-stamp
 	rm -rf build/man
 	cp -rl build/html build/man
 	python3 ./sphinx-build.py -T -b man doc build/man
+endif
 	python setup.py build --build-lib build/py2/
 	python3 setup.py build --build-lib build/py3/
 	python setup.py compile_catalog
@@ -145,13 +147,17 @@ binary binary-indep: build-stamp
 	dh_installchangelogs CHANGES
 	dh_installdocs
 	dh_lintian
+ifeq "$(filter nodoc,$(DEB_BUILD_OPTIONS))" ""
 	./debian/dh-sphinxdoc/dh_sphinxdoc -p sphinx-doc /usr/share/doc/sphinx-doc/html/
+endif
 	dh_installexamples
 	cd debian/dh-sphinxdoc/ && pod2man -c Debhelper -r '' dh_sphinxdoc dh_sphinxdoc.1
 ifneq ($(shell grep -h '^[.]TH' debian/*.1 | cut -d ' ' -f 6-7 | sort -u), "Sphinx $(DEB_VERSION_UPSTREAM)")
 	$(warning W: version numbers in the manual pages are out of date)
 endif
+ifeq "$(filter nodoc,$(DEB_BUILD_OPTIONS))" ""
 	dh_installman
+endif
 	dh_python2 -p python-sphinx
 	dh_python3 -p python3-sphinx --no-guessing-deps
 	dh_strip_nondeterminism

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



More information about the Python-modules-commits mailing list