r17279 - in /trunk/libterm-readpassword-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Mar 12 19:03:39 UTC 2008


Author: gregoa-guest
Date: Wed Mar 12 19:03:38 2008
New Revision: 17279

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17279
Log:
debian/rules: update based on dh-make-perl's templates.

Modified:
    trunk/libterm-readpassword-perl/debian/changelog
    trunk/libterm-readpassword-perl/debian/rules

Modified: trunk/libterm-readpassword-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libterm-readpassword-perl/debian/changelog?rev=17279&op=diff
==============================================================================
--- trunk/libterm-readpassword-perl/debian/changelog (original)
+++ trunk/libterm-readpassword-perl/debian/changelog Wed Mar 12 19:03:38 2008
@@ -1,9 +1,10 @@
 libterm-readpassword-perl (0.11-2) UNRELEASED; urgency=low
 
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #468021).
+  * debian/rules: update based on dh-make-perl's templates.
   * debian/watch: improved regexp for matching upstream releases.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 19:59:55 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 12 Mar 2008 20:01:55 +0100
 
 libterm-readpassword-perl (0.11-1) unstable; urgency=low
 

Modified: trunk/libterm-readpassword-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libterm-readpassword-perl/debian/rules?rev=17279&op=diff
==============================================================================
--- trunk/libterm-readpassword-perl/debian/rules (original)
+++ trunk/libterm-readpassword-perl/debian/rules Wed Mar 12 19:03:38 2008
@@ -1,52 +1,70 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
 
-PERL=/usr/bin/perl
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
 
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	$(PERL) Makefile.PL verbose INSTALLDIRS=vendor
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
-	export AUTOMATED_TESTING=1 && $(MAKE) test
+	AUTOMATED_TESTING=1 $(MAKE) test
+
 	touch $@
+
 clean:
 	dh_testdir
 	dh_testroot
+
 	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
-install-stamp:
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(MAKE) install PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr
-	[ ! -d $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
+
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+
 	touch $@
 
-binary-arch:;
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




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