[Pkg-octave-commit] [octave] 03/07: d/rules: support the "nodoc" tag of DEB_BUILD_OPTIONS.

Sébastien Villemot sebastien at debian.org
Mon Jun 19 14:42:32 UTC 2017


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

sebastien pushed a commit to branch master
in repository octave.

commit b8cc1cffd1fdef3f1f4ee162fdbfee4f26c3e0af
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Mon Jun 19 15:42:05 2017 +0200

    d/rules: support the "nodoc" tag of DEB_BUILD_OPTIONS.
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 5a12220..83f59dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,12 +39,18 @@ ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
 	--with-hdf5-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
 endif
 
+# Support the nodoc flag of DEB_BUILD_OPTIONS
+ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_configure:
+DOC_FLAG := --disable-docs
+endif
+
 %:
 	dh $@
 
 override_dh_auto_configure:
 	# override normal dh_auto_configure call to pass OpenMP flag to it (#631831)
-	dh_auto_configure -- --enable-openmp $(WITH_JAVA_FLAGS) $(JIT_FLAG) $(HDF5_FLAGS)
+	dh_auto_configure -- --enable-openmp $(WITH_JAVA_FLAGS) $(JIT_FLAG) $(HDF5_FLAGS) $(DOC_FLAG)
 	# Avoid triggering the build of oct-gperf.h
 	touch libinterp/parse-tree/oct-gperf.h libinterp/parse-tree/oct-parse.h
 

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave.git



More information about the Pkg-octave-commit mailing list