r17671 - in /trunk/libtest-exception-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Mon Mar 17 00:26:41 UTC 2008


Author: gregoa-guest
Date: Mon Mar 17 00:26:40 2008
New Revision: 17671

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

Modified:
    trunk/libtest-exception-perl/debian/changelog
    trunk/libtest-exception-perl/debian/rules

Modified: trunk/libtest-exception-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-exception-perl/debian/changelog?rev=17671&op=diff
==============================================================================
--- trunk/libtest-exception-perl/debian/changelog (original)
+++ trunk/libtest-exception-perl/debian/changelog Mon Mar 17 00:26:40 2008
@@ -6,6 +6,7 @@
   * Set Maintainer to Debian Perl Group.
   * Use dist-based URL in debian/watch.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467271).
+  * debian/rules: update based on dh-make-perl's templates.
   * Make runtime dependencies versioned, too.
   * debian/watch: improved regexp for matching upstream releases.
   * debian/copyright: add actual copyright notice.
@@ -29,7 +30,7 @@
   [ Niko Tyni ]
   * Split most of Build-Depends into Build-Depends-Indep.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 17 Mar 2008 01:23:19 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 17 Mar 2008 01:25:13 +0100
 
 libtest-exception-perl (0.25-1) unstable; urgency=low
 

Modified: trunk/libtest-exception-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-exception-perl/debian/rules?rev=17671&op=diff
==============================================================================
--- trunk/libtest-exception-perl/debian/rules (original)
+++ trunk/libtest-exception-perl/debian/rules Mon Mar 17 00:26:40 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
 
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
 
+ifndef PERL
+PERL = /usr/bin/perl
+endif
 
-build:
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
 	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+
+	touch $@
+
 clean:
 	dh_testdir
 	dh_testroot
 
-	[ ! -f Makefile ] || $(MAKE) clean
-	dh_clean Makefile.old
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
-	[ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/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
 
-binary-arch:;
+	touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
-	dh_installman
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
+	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