r17072 - in /trunk/libnumber-compare-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sun Mar 9 15:28:30 UTC 2008


Author: gregoa-guest
Date: Sun Mar  9 15:28:30 2008
New Revision: 17072

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

Modified:
    trunk/libnumber-compare-perl/debian/changelog
    trunk/libnumber-compare-perl/debian/rules

Modified: trunk/libnumber-compare-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libnumber-compare-perl/debian/changelog?rev=17072&op=diff
==============================================================================
--- trunk/libnumber-compare-perl/debian/changelog (original)
+++ trunk/libnumber-compare-perl/debian/changelog Sun Mar  9 15:28:30 2008
@@ -5,11 +5,12 @@
     Vcs-Svn fields.
   * debian/watch: use dist-based URL.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467997).
+  * debian/rules: update based on dh-make-perl's templates.
   * Set Standards-Version to 3.7.3 (no changes).
   * debian/copyright: use specific download URL, add actual copyright, fix
     license, convert to new format.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 09 Mar 2008 16:24:20 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 09 Mar 2008 16:26:23 +0100
 
 libnumber-compare-perl (0.01-4) unstable; urgency=low
 

Modified: trunk/libnumber-compare-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libnumber-compare-perl/debian/rules?rev=17072&op=diff
==============================================================================
--- trunk/libnumber-compare-perl/debian/rules (original)
+++ trunk/libnumber-compare-perl/debian/rules Sun Mar  9 15:28:30 2008
@@ -1,10 +1,23 @@
 #!/usr/bin/make -f
+# 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
 
-PERL ?= /usr/bin/perl
-package = libnumber-compare-perl
+# 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=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
@@ -12,43 +25,46 @@
 
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
+	$(MAKE) test
 
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
 
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-	dh_clean
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) test
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(package)
-	[ ! -d debian/$(package)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose 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:
+# 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_installdocs
-	dh_link
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary-arch: build install
+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




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