r19267 - in /trunk/perlconsole/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Wed Apr 30 19:38:44 UTC 2008


Author: gregoa
Date: Wed Apr 30 19:38:43 2008
New Revision: 19267

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

Modified:
    trunk/perlconsole/debian/changelog
    trunk/perlconsole/debian/rules

Modified: trunk/perlconsole/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/perlconsole/debian/changelog?rev=19267&op=diff
==============================================================================
--- trunk/perlconsole/debian/changelog (original)
+++ trunk/perlconsole/debian/changelog Wed Apr 30 19:38:43 2008
@@ -4,8 +4,9 @@
     Makefile.PL to prevent it from being re-built; allows building twice
     in a row.
   * debian/watch: use dist-based URL.
+  * Refresh debian/rules, no functional changes.
 
- -- gregor herrmann <gregoa at debian.org>  Mon, 28 Apr 2008 18:12:54 +0200
+ -- gregor herrmann <gregoa at debian.org>  Wed, 30 Apr 2008 21:31:38 +0200
 
 perlconsole (0.4-2) unstable; urgency=low
 

Modified: trunk/perlconsole/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/perlconsole/debian/rules?rev=19267&op=diff
==============================================================================
--- trunk/perlconsole/debian/rules (original)
+++ trunk/perlconsole/debian/rules Wed Apr 30 19:38:43 2008
@@ -4,60 +4,42 @@
 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
 # be used freely wherever it is useful.
 
-# use quilt to manage patches
-include /usr/share/quilt/quilt.make
-
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
 
 # 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)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-
-	# As this is a architecture independent package, we are not
-	# supposed to install stuff to /usr/lib. MakeMaker creates
-	# the dirs, we prevent this by setting the INSTALLVENDORARCH
-	# and VENDORARCHEXP environment variables.
-
-	# Add commands to compile the package here
-	$(PERL) Makefile.PL INSTALLDIRS=vendor \
-		INSTALLVENDORARCH=/usr/share/perl5/ \
-		VENDORARCHEXP=/usr/share/perl5/
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-
 	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
-
 	dh_clean build-stamp install-stamp
-
-	# Add commands to clean up after the build process here
 	[ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
 
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-
-	# Add commands to install the package into debian/$PACKAGE_NAME here
 	$(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:
@@ -66,7 +48,6 @@
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installexamples
 	dh_installdocs README
 	dh_installchangelogs CHANGES
 	dh_perl
@@ -77,8 +58,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