[libemail-valid-loose-perl] 03/11: Use dh_auto_{configure, build, test, install, clean}

Axel Beckert abe at deuxchevaux.org
Sun May 25 01:03:50 UTC 2014


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

abe pushed a commit to branch master
in repository libemail-valid-loose-perl.

commit d2328974772d6d57456ed4e98ead76c91a1e3c12
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Sun May 25 02:48:43 2014 +0200

    Use dh_auto_{configure,build,test,install,clean}
---
 debian/changelog |  2 ++
 debian/rules     | 10 +++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8e66fa9..aa0418e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,8 @@ libemail-valid-loose-perl (0.05-4) UNRELEASED; urgency=low
   * Switch to source format "3.0 (quilt)"
   * Bump debhelper compatibility to 8
     + Update versioned debhelper build-dependency accordingly
+  * Revamp debian/rules:
+    + Use dh_auto_{configure,build,test,install,clean}
 
  -- gregor herrmann <gregoa at debian.org>  Sun, 16 Nov 2008 20:42:26 +0100
 
diff --git a/debian/rules b/debian/rules
index db67856..6806a5e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,15 +22,15 @@ TMP     =$(CURDIR)/debian/$(PACKAGE)
 build: build-stamp
 build-stamp:
 	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-Wall -O2 -g"
+	dh_auto_configure
+	dh_auto_build
 	touch build-stamp
 
 clean:
 	dh_testdir
 	dh_testroot
 	# Add commands to clean up after the build process here
-	[ ! -f Makefile ] || $(MAKE) realclean
+	dh_auto_clean
 	dh_clean build-stamp install-stamp
 
 install: build install-stamp
@@ -38,8 +38,8 @@ install-stamp:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(MAKE) test
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	dh_auto_test
+	dh_auto_install
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
 
 	touch install-stamp

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



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