r21057 - in /trunk/libfile-remove-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jun 14 19:24:06 UTC 2008


Author: gregoa
Date: Sat Jun 14 19:24:06 2008
New Revision: 21057

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

Modified:
    trunk/libfile-remove-perl/debian/changelog
    trunk/libfile-remove-perl/debian/rules

Modified: trunk/libfile-remove-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-remove-perl/debian/changelog?rev=21057&op=diff
==============================================================================
--- trunk/libfile-remove-perl/debian/changelog (original)
+++ trunk/libfile-remove-perl/debian/changelog Sat Jun 14 19:24:06 2008
@@ -4,6 +4,7 @@
   * debian/watch: extended regexp for matching upstream releases.
   * Set Standards-Version to 3.8.0 (no changes).
   * Add /me to Uploaders.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregoa at debian.org>  Sat, 14 Jun 2008 21:18:35 +0200
 

Modified: trunk/libfile-remove-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-remove-perl/debian/rules?rev=21057&op=diff
==============================================================================
--- trunk/libfile-remove-perl/debian/rules (original)
+++ trunk/libfile-remove-perl/debian/rules Sat Jun 14 19:24:06 2008
@@ -11,13 +11,9 @@
 # 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)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
@@ -31,8 +27,7 @@
 	dh_testdir
 	dh_testroot
 	dh_clean build-stamp install-stamp
-	# Add commands to clean up after the build process here
-	[ ! -f Makefile ] || $(MAKE) distclean
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
 install-stamp: build-stamp
@@ -40,14 +35,13 @@
 	dh_testroot
 	dh_clean -k
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	# As this is a architecture independent package, we are not
-	# supposed to install stuff to /usr/lib. MakeMaker creates
-	# the dirs, we delete them from the deb:
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+	[ ! -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 by default.
+# We have nothing to do here for an architecture-independent package
 
 binary-indep: build install
 	dh_testdir
@@ -62,8 +56,5 @@
 	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
+.PHONY: build clean binary-indep binary-arch binary install




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