[libconfigreader-perl] 10/17: Also use dh_auto_{configure, build, test, install}

Axel Beckert abe at deuxchevaux.org
Thu Dec 26 17:18:43 UTC 2013


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

abe pushed a commit to branch master
in repository libconfigreader-perl.

commit 6d7907e764513ff4cfb61e540d3a5fd3dcc0582e
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Dec 26 17:13:47 2013 +0100

    Also use dh_auto_{configure,build,test,install}
    
    Enables test suite at build-time
---
 debian/changelog | 2 ++
 debian/rules     | 7 ++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c9c3495..5b346dc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -61,6 +61,8 @@ libconfigreader-perl (0.5-5) UNRELEASED; urgency=low
   * Revamp debian/rules
     + Fix lintian warning debian-rules-missing-recommended-target
     + Replace "dh_clean -k" with "dh_prep"
+    + Also use dh_auto_{configure,build,test,install}
+      - Enables test suite at build-time
 
  -- Joachim Breitner <nomeata at debian.org>  Mon, 11 Feb 2008 20:27:11 +0000
 
diff --git a/debian/rules b/debian/rules
index f6d4295..8e94968 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,8 +17,9 @@ build-stamp:
 	mkdir -pv $(CURDIR)/ConfigReader
 	cp -pv $(CURDIR)/*.pm $(CURDIR)/ConfigReader
 
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
+	dh_auto_configure
+	dh_auto_build
+	dh_auto_test
 
 	touch build-stamp
 
@@ -55,7 +56,7 @@ install-stamp: build-stamp
 	dh_testroot
 	dh_prep
 
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	dh_auto_install
 
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 

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



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