[libtest-pod-coverage-perl] 06/11: Use dh_auto_{configure, build, test, install, clean}
Axel Beckert
abe at deuxchevaux.org
Wed Sep 11 22:27:05 UTC 2013
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libtest-pod-coverage-perl.
commit 6ff1a90c143c3ac2db953656d428c0c8d6b106dd
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Thu Sep 12 00:07:14 2013 +0200
Use dh_auto_{configure,build,test,install,clean}
Remove now obsolete variable definitions
---
debian/changelog | 3 +++
debian/rules | 24 ++++++------------------
2 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c044097..146f6cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,9 @@ libtest-pod-coverage-perl (1.08-4) UNRELEASED; urgency=low
+ dh-clean-k-is-deprecated
+ debian-rules-missing-recommended-target
+ copyright-refers-to-symlink-license
+ * Revamp debian/rules:
+ + Use dh_auto_{configure,build,test,install,clean}
+ + Remove now obsolete variable definitions
-- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:47:58 +0100
diff --git a/debian/rules b/debian/rules
index ac32536..29e9b4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,14 +11,6 @@
# always return the default without waiting for user input.
export PERL_MM_USE_DEFAULT=1
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(PACKAGE)
-
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
@@ -26,9 +18,9 @@ build-stamp:
dh_testdir
# Add commands to compile the package here
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
- $(MAKE) test
+ dh_auto_configure
+ dh_auto_build
+ dh_auto_test
touch $@
@@ -36,10 +28,9 @@ clean:
dh_testdir
dh_testroot
- dh_clean build-stamp install-stamp
+ dh_auto_clean
- # Add commands to clean up after the build process here
- [ ! -f Makefile ] || $(MAKE) realclean
+ dh_clean build-stamp install-stamp
install: install-stamp
install-stamp: build-stamp
@@ -47,10 +38,7 @@ install-stamp: build-stamp
dh_testroot
dh_prep
- # Add commands to install the package into $(TMP) here
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
- [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+ dh_auto_install
touch $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-pod-coverage-perl.git
More information about the Pkg-perl-cvs-commits
mailing list