[shark] 03/06: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Oct 12 09:43:34 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 shark.

commit fd60b8f5b118dee0ca9e466253e065ef3fe4aae6
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Oct 12 10:06:05 2017 +0100

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

diff --git a/debian/control b/debian/control
index e787aca..d427621 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: science
 Priority: optional
 Build-Depends: cmake,
                debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
                libblas-dev | libblas.so,
                libboost-date-time-dev,
                libboost-filesystem-dev,
@@ -14,9 +15,9 @@ Build-Depends: cmake,
                libboost-test-dev,
                libboost-thread-dev,
                libhdf5-dev
-Build-Depends-Indep: doxygen,
-                     graphviz,
-                     python-sphinx
+Build-Depends-Indep: doxygen <!nodoc>,
+                     graphviz <!nodoc>,
+                     python-sphinx <!nodoc>
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/shark.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/shark.git
@@ -70,3 +71,4 @@ Description: documentation for Shark
  algorithms and neural networks, and various other machine learning techniques.
  .
  This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 9e6a203..2c5b9c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,20 +33,24 @@ override_dh_auto_configure-arch:
 		-DBUILD_EXAMPLES=OFF
 
 override_dh_auto_configure-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) \
 		-DBUILD_DOCUMENTATION=ON \
 		-DBUILD_EXAMPLES=ON \
 		-DOPT_INSTALL_DOCUMENTATION=ON
+endif
 
 override_dh_auto_test:
 	dh_auto_test -- ARGS+="-LE 'slow'"
 
 override_dh_installdocs-indep:
 	dh_installdocs --indep
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	dh_doxygen --indep \
 		/usr/share/doc/shark-doc/html/doxygen_pages/html
 	dh_sphinxdoc --indep --exclude=MathJax.js \
 		/usr/share/doc/shark-doc/html/sphinx_pages
+endif
 
 override_dh_compress:
 	dh_compress --exclude=examples

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



More information about the debian-science-commits mailing list