[docopt.cpp] 04/07: Support the nocheck build profile
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Mar 9 08:39:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository docopt.cpp.
commit 7087130ee01df103c8715ebae752aece784465e7
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu Mar 2 10:50:26 2017 +0000
Support the nocheck build profile
- Add versioned b-dep on dpkg-dev
- Mark test b-deps as !nocheck
- Use DEB_BUILD_PROFILES in nocheck guards
Gbp-Dch: full
---
debian/control | 3 ++-
debian/rules | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index 20a690b..5e79d20 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Section: libs
Priority: optional
Build-Depends: cmake (>= 3.1),
debhelper (>= 10),
- python
+ dpkg-dev (>= 1.17.14),
+ python <!nocheck>
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/docopt.cpp.git
Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/docopt.cpp.git
diff --git a/debian/rules b/debian/rules
index 05f9eb5..cdf9ea3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,13 +9,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dh $@
override_dh_auto_configure:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
dh_auto_configure -- -DWITH_TESTS=ON
else
dh_auto_configure -- -DWITH_TESTS=OFF
endif
override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
./*/run_tests
endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/docopt.cpp.git
More information about the debian-science-commits
mailing list