[libstar-parser-perl] 09/16: Use dh_auto_{configure,build,test,install,clean} …

Axel Beckert abe at deuxchevaux.org
Mon Dec 23 21:07:47 UTC 2013


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

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

commit eb5c2fcdd9a7d1b5892b7af422e440c8ec6800ea
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Dec 23 21:55:33 2013 +0100

    Use dh_auto_{configure,build,test,install,clean} …
    
    … and put them in the correct targets
---
 debian/changelog | 2 ++
 debian/rules     | 9 +++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b5fa081..38f0c50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,8 @@ libstar-parser-perl (0.59-4) UNRELEASED; urgency=low
   * Revamp debian/rules:
     + Fix lintian warning debian-rules-missing-recommended-target
     + Replace "dh_clean -k" with "dh_prep"
+    + Use dh_auto_{configure,build,test,install,clean} and put them in the
+      correct targets.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:31:57 +0200
 
diff --git a/debian/rules b/debian/rules
index 262d45c..ae29377 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,13 +14,15 @@ build-indep: build-stamp
 build-stamp:
 	dh_testdir
 	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
+	dh_auto_configure
+	dh_auto_build
+	dh_auto_test
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	[ ! -f Makefile ] || $(MAKE) clean
+	dh_auto_clean
 	rm -f Makefile.old
 	dh_clean
 
@@ -29,8 +31,7 @@ install:
 	dh_testroot
 	dh_prep
 	dh_installdirs
-	$(MAKE) test
-	$(MAKE) PREFIX=$(debtmp)/usr install
+	dh_auto_install
 	[ ! -d $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/lib/perl5
 
 binary-indep: build install

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



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