[pybind11] 06/07: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jan 3 16:15:09 UTC 2017


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

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

commit ea1703ef4adb8a65ec89f0d1cc9ebff39387889a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Jan 3 15:02:25 2017 +0000

    Add support for the nodoc build profile
    
    - Mark build dependencies specific to the documentation as !nodoc
    - Add build dependency on sphinx-common for dh_sphinxdoc
    - Do not build the documentation if nodoc is requested
---
 debian/control | 10 ++++++----
 debian/rules   |  2 ++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index b473869..85c911a 100644
--- a/debian/control
+++ b/debian/control
@@ -10,12 +10,13 @@ Build-Depends: cmake (>= 2.8.12),
                python-all,
                python-pytest <!nocheck>,
                python-setuptools,
-               python-sphinx,
-               python-sphinx-rtd-theme,
+               python-sphinx <!nodoc>,
+               python-sphinx-rtd-theme <!nodoc>,
                python3-all,
                python3-dev <!nocheck>,
                python3-pytest <!nocheck>,
-               python3-setuptools
+               python3-setuptools,
+               sphinx-common
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/pybind11.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/pybind11.git
@@ -29,7 +30,7 @@ Multi-Arch: foreign
 Section: libdevel
 Depends: ${misc:Depends},
 Suggests: libeigen3-dev,
-          pybind11-doc,
+          pybind11-doc <!nodoc>,
 Description: seamless operability between C++11 and Python
  pybind11 is a lightweight header library that exposes C++ types in
  Python and vice versa, mainly to create Python bindings of existing C++
@@ -55,6 +56,7 @@ Description: documentation for pybind11
  introspection.
  .
  This package provides the documentation.
+Build-Profiles: <!nodoc>
 
 Package: python-pybind11
 Architecture: all
diff --git a/debian/rules b/debian/rules
index 04d3496..9885471 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,9 @@ override_dh_auto_build: export https_proxy=127.0.0.1:9
 override_dh_auto_build:
 	dh_auto_build
 	dh_auto_build --buildsystem=pybuild
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=. sphinx-build -N -b html docs build/html
+endif
 
 override_dh_auto_install:
 	dh_auto_install

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



More information about the debian-science-commits mailing list