r20699 - in /trunk/libregexp-common-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Wed Jun 4 17:54:28 UTC 2008


Author: gregoa
Date: Wed Jun  4 17:54:27 2008
New Revision: 20699

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

Modified:
    trunk/libregexp-common-perl/debian/changelog
    trunk/libregexp-common-perl/debian/rules

Modified: trunk/libregexp-common-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-perl/debian/changelog?rev=20699&op=diff
==============================================================================
--- trunk/libregexp-common-perl/debian/changelog (original)
+++ trunk/libregexp-common-perl/debian/changelog Wed Jun  4 17:54:27 2008
@@ -10,6 +10,7 @@
   * debian/copyright: point to author-independent source download location;
     mention both upstream authors; update copyright and licensing terms
     according to upstream changes.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:31:47 +0200
 

Modified: trunk/libregexp-common-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-perl/debian/rules?rev=20699&op=diff
==============================================================================
--- trunk/libregexp-common-perl/debian/rules (original)
+++ trunk/libregexp-common-perl/debian/rules Wed Jun  4 17:54:27 2008
@@ -1,73 +1,60 @@
 #!/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
 
-PACKAGE=$(shell dh_listpackages)
+# 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
-
-DESTDIR=..
-
-TMP     =$(CURDIR)/debian/$(PACKAGE)
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-
-	$(PERL) Makefile.PL verbose INSTALLDIRS=vendor
-
-	touch configure-stamp
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: configure-stamp
+build-stamp:
 	dh_testdir
-
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
-	dh_testroot 
+	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	[ ! -e Makefile ] || $(MAKE) distclean
-
-	dh_clean build-stamp configure-stamp
-
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-	$(MAKE) install PREFIX=$(TMP)/usr
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-	# Remove any empty directories
-
-	[ ! -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
-
-
-# Build architecture-independent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README TODO
-	dh_installman
-	dh_installchangelogs 
+	dh_installdocs TODO
+	dh_installchangelogs -k README
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir=$(DESTDIR)
+	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
-
+.PHONY: build clean binary-indep binary-arch binary install




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