[globjects] 02/03: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 20 08:49:37 UTC 2017


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

ghisvail-guest pushed a commit to branch debian/master
in repository globjects.

commit b07565769ce34d31fa014c3fe3089935d55d21cb
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Jul 20 09:39:27 2017 +0100

    Add support for the nodoc build profile
---
 debian/control | 6 ++++--
 debian/rules   | 4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index b76d5af..84fc41b 100644
--- a/debian/control
+++ b/debian/control
@@ -6,9 +6,10 @@ Testsuite: autopkgtest
 Priority: optional
 Build-Depends: cmake (>= 3.0),
                debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
                libglbinding-dev,
                libglm-dev
-Build-Depends-Indep: doxygen
+Build-Depends-Indep: doxygen <!nodoc>
 Standards-Version: 4.0.0
 Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/globjects.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/globjects.git
@@ -37,7 +38,7 @@ Section: libdevel
 Depends: ${misc:Depends},
          libglbinding-dev,
          libglobjects1 (= ${binary:Version})
-Suggests: globjects-doc
+Suggests: globjects-doc <!nodoc>
 Description: development files for globjects
  globjects provides object-oriented interfaces to the OpenGL API (3.0 and
  higher). The main goals are much reduced code to use OpenGL in your
@@ -65,3 +66,4 @@ Description: documentation for globjects
  even emulated.
  .
  This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 4b78d2b..9f530e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,8 +26,12 @@ override_dh_auto_configure-arch:
 	dh_auto_configure -- $(BUILD_OPTIONS) -DOPTION_BUILD_DOCS=OFF
 
 override_dh_auto_configure-indep:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	dh_auto_configure -- $(BUILD_OPTIONS) -DOPTION_BUILD_DOCS=ON
+endif
 
 override_dh_installdocs-indep:
 	dh_installdocs --indep
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	dh_doxygen --indep
+endif

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



More information about the debian-science-commits mailing list