[h5py] 14/17: Support the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jan 5 19:13:38 UTC 2017


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

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

commit 6e9a09c56b1869b1c84c4618898179800cdd6d07
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Jan 5 14:58:17 2017 +0000

    Support the nodoc build profile
    
    - Add appropriate build dependency on dpkg-dev
    - Mark build dependencies for the documentation as !nodoc
    - Add build dependency on sphinx-common for dh_sphinxdoc
    - Do not build the documentation if nodoc is requested
---
 debian/control | 11 +++++++----
 debian/rules   | 13 ++++++-------
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/debian/control b/debian/control
index f364c67..77bc6e7 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: cython,
                cython3-dbg,
                debhelper (>= 10),
                dh-python,
+               dpkg-dev (>= 1.17.14),
                libhdf5-dev,
                python-all-dbg,
                python-all-dev,
@@ -24,8 +25,9 @@ Build-Depends: cython,
                python3-numpy-dbg,
                python3-pkgconfig,
                python3-setuptools,
-               python3-six
-Build-Depends-Indep: python-sphinx
+               python3-six,
+               sphinx-common
+Build-Depends-Indep: python-sphinx <!nodoc>
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/h5py.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/h5py.git
@@ -38,7 +40,7 @@ Architecture: any
 Depends: ${misc:Depends},
          ${python:Depends},
          ${shlibs:Depends}
-Suggests: python-h5py-doc
+Suggests: python-h5py-doc <!nodoc>
 Description: general-purpose Python interface to hdf5 (Python 2)
  HDF5 for Python (h5py) is a general-purpose Python interface to the
  Hierarchical Data Format library, version 5. HDF5 is a versatile, mature
@@ -96,7 +98,7 @@ Architecture: any
 Depends: ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends}
-Suggests: python-h5py-doc
+Suggests: python-h5py-doc <!nodoc>
 Description: general-purpose Python interface to hdf5 (Python 3)
  HDF5 for Python (h5py) is a general-purpose Python interface to the
  Hierarchical Data Format library, version 5. HDF5 is a versatile, mature
@@ -175,3 +177,4 @@ Description: h5py documentation
  presented using a dictionary metaphor, indexed by name.
  .
  This package provides the documentation for h5py.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 4308448..edd2706 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,15 +7,14 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export PYBUILD_NAME = h5py
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+override_dh_auto_build-indep: export http_proxy=127.0.0.1:9
+override_dh_auto_build-indep: export https_proxy=127.0.0.1:9
 override_dh_auto_build-indep:
-	PYTHONPATH=. http_proxy='127.0.0.1:9' \
-		   sphinx-build -N -bhtml docs/ build/html
-
-override_dh_installdocs-indep:
-	dh_installdocs --indep
-	dh_sphinxdoc --indep
+	PYTHONPATH=. sphinx-build -N -b html docs build/html
+endif
 
 override_dh_python2:
 	dh_python2

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



More information about the debian-science-commits mailing list