r23466 - in /trunk/libtk-pod-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Mon Jul 21 20:40:08 UTC 2008


Author: gregoa
Date: Mon Jul 21 20:40:05 2008
New Revision: 23466

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=23466
Log:
Refresh debian/rules, no functional changes.

Modified:
    trunk/libtk-pod-perl/debian/changelog
    trunk/libtk-pod-perl/debian/rules

Modified: trunk/libtk-pod-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtk-pod-perl/debian/changelog?rev=23466&op=diff
==============================================================================
--- trunk/libtk-pod-perl/debian/changelog (original)
+++ trunk/libtk-pod-perl/debian/changelog Mon Jul 21 20:40:05 2008
@@ -7,6 +7,7 @@
   * debian/control: change my email address.
   * Move libtext-english-perl, libtk-histentry-perl from Depends: to
     Recommends: as per upstream changes.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregoa at debian.org>  Mon, 21 Jul 2008 22:21:04 +0200
 

Modified: trunk/libtk-pod-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtk-pod-perl/debian/rules?rev=23466&op=diff
==============================================================================
--- trunk/libtk-pod-perl/debian/rules (original)
+++ trunk/libtk-pod-perl/debian/rules Mon Jul 21 20:40:05 2008
@@ -1,48 +1,57 @@
 #!/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
 
-package := $(shell dh_listpackages)
-debtmp  := $(CURDIR)/debian/$(package)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+# 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
 
 include /usr/share/quilt/quilt.make
+
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	$(PERL) Makefile.PL verbose INSTALLDIRS=vendor
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	xvfb-run $(MAKE) test
-
-	touch build-stamp
+	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
-	dh_clean build-stamp
-	chmod a-x Pod_usage.pod
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-install: build
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(MAKE) DESTDIR=$(debtmp) PREFIX=/usr install
-	[ ! -d $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/lib/perl5
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	chmod a-x $(TMP)/usr/share/perl5/Tk/Pod_usage.pod
+	[ ! -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_perl
 	dh_installdocs TODO
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -50,7 +59,5 @@
 	dh_md5sums
 	dh_builddeb
 
-binary-arch: build install
-
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install




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