[forge] 05/08: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 4 20:59:32 UTC 2017


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

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

commit 6fe76ae490b77bec47c678d67c9352b0740f701a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jan 4 11:44:30 2017 +0000

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

diff --git a/debian/control b/debian/control
index 1258723..efe048e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: libs
 Priority: optional
 Build-Depends: cmake (>= 3.0),
                debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
                libfontconfig1-dev,
                libfreeimage-dev,
                libfreetype6-dev,
@@ -12,7 +13,7 @@ Build-Depends: cmake (>= 3.0),
                libglbinding-dev,
                libglfw3-dev,
                libglm-dev
-Build-Depends-Indep: doxygen
+Build-Depends-Indep: doxygen <!nodoc>
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/forge.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/forge.git
@@ -37,7 +38,7 @@ Multi-Arch: same
 Section: libdevel
 Depends: ${misc:Depends},
          libforge0 (= ${binary:Version})
-Suggests: forge-doc
+Suggests: forge-doc <!nodoc>
 Description: development files for forge
  A prototype of the OpenGL interop library that can be used with ArrayFire. The
  goal of Forge is to provide high performance OpenGL visualizations for C/C++
@@ -57,3 +58,4 @@ Description: documentation for forge
  applications that use CUDA/OpenCL.
  .
  This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 8321283..cd0e5a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,8 @@ override_dh_auto_configure-arch:
 		-DBUILD_DOCUMENTATION=OFF
 
 override_dh_auto_configure-indep:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	dh_auto_configure -- $(BUILD_OPTIONS) \
 		-DBUILD_DOCUMENTATION=ON \
 		-DFG_INSTALL_DOC_DIR="share/doc/forge-doc"
+endif

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



More information about the debian-science-commits mailing list