[nfft] 08/11: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 20 17:53:15 UTC 2017


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

ghisvail-guest pushed a commit to branch debian/experimental
in repository nfft.

commit 243da1e08fd86d6ad1740a7efd68517d010b1165
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Sep 19 22:14:25 2017 +0200

    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 2291e06..2d9a665 100644
--- a/debian/control
+++ b/debian/control
@@ -4,11 +4,12 @@ Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
                libcunit1-dev,
                libfftw3-dev,
                libncurses5-dev,
                pkg-config
-Build-Depends-Indep: doxygen
+Build-Depends-Indep: doxygen <!nodoc>
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/nfft.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/nfft.git
@@ -170,7 +171,7 @@ Depends: ${misc:Depends},
          libnfft3-double2 (= ${binary:Version}),
          libnfft3-long2 (= ${binary:Version}) [amd64 arm64 hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips64el powerpc powerpcspe ppc64el s390x x32],
          libnfft3-single2 (= ${binary:Version})
-Suggests: libnfft3-doc
+Suggests: libnfft3-doc <!nodoc>
 Description: development files for the NFFT library
  NFFT3 is a software library written in C for computing nonequispaced fast
  Fourier and related transformations. In detail, NFFT3 implements:
@@ -233,3 +234,4 @@ Description: documentation for the NFFT library
     - polar FFT, discrete Radon transform, ridgelet transform
  .
  This package provides the documentation for the NFFT library.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 4ee01b7..06954f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,9 +54,11 @@ ifneq (,$(filter long,$(PRECISIONS)))
 endif
 
 override_dh_auto_configure-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	dh_auto_configure --builddirectory=build-double -- \
 		$(BUILD_OPTIONS) \
 		--enable-doxygen-doc
+endif
 
 override_dh_auto_build-arch:
 	for p in $(PRECISIONS) ; do \
@@ -80,5 +82,7 @@ override_dh_auto_install-arch:
 	done
 
 override_dh_installdocs-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	dh_installdocs --indep
 	dh_doxygen --indep
+endif

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



More information about the debian-science-commits mailing list