[libplack-middleware-header-perl] 01/08: Prefer our own packaged inc/Test/* modules over those included in source

Nick Morrott nickm-guest at moszumanska.debian.org
Mon Aug 8 00:47:48 UTC 2016


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

nickm-guest pushed a commit to branch master
in repository libplack-middleware-header-perl.

commit b965f11de941657b26c31c0ac31192bd45cc0df9
Author: Nick Morrott <knowledgejunkie at gmail.com>
Date:   Sun Aug 7 15:29:37 2016 +0100

    Prefer our own packaged inc/Test/* modules over those included in source
---
 debian/control | 2 ++
 debian/rules   | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/debian/control b/debian/control
index e1ececd..717ae46 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,8 @@ Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Nick Morrott <knowledgejunkie at gmail.com>
 Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: libplack-perl,
+                     libtest-base-perl,
+                     libtest-simple-perl,
                      perl
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libplack-middleware-header-perl.git
diff --git a/debian/rules b/debian/rules
index 2d33f6a..9dbb7da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,12 @@
 
 %:
 	dh $@
+
+# Temporarily move old inc/Test files out of the way when building
+override_dh_auto_clean:
+	dh_auto_clean
+	[ ! -d $(CURDIR)/inc.test.save ] || mv $(CURDIR)/inc.test.save $(CURDIR)/inc/Test
+
+override_dh_auto_configure:
+	[ ! -d $(CURDIR)/inc/Test ] || mv $(CURDIR)/inc/Test $(CURDIR)/inc.test.save
+	dh_auto_configure

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libplack-middleware-header-perl.git



More information about the Pkg-perl-cvs-commits mailing list