r18995 - in /trunk/libio-compress-zlib-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Mon Apr 21 19:28:16 UTC 2008


Author: gregoa
Date: Mon Apr 21 19:28:15 2008
New Revision: 18995

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18995
Log:
Refresh debian/rules, no functional changes, except for the additional
examples.

Modified:
    trunk/libio-compress-zlib-perl/debian/changelog
    trunk/libio-compress-zlib-perl/debian/rules

Modified: trunk/libio-compress-zlib-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libio-compress-zlib-perl/debian/changelog?rev=18995&op=diff
==============================================================================
--- trunk/libio-compress-zlib-perl/debian/changelog (original)
+++ trunk/libio-compress-zlib-perl/debian/changelog Mon Apr 21 19:28:15 2008
@@ -3,8 +3,10 @@
   * New upstream release.
   * debian/copyright: adjust years of copyright; remove URL of Artistic
     license, adapt upstream source location.
+  * Refresh debian/rules, no functional changes, except for the additional
+    examples.
 
- -- gregor herrmann <gregoa at debian.org>  Mon, 21 Apr 2008 21:24:20 +0200
+ -- gregor herrmann <gregoa at debian.org>  Mon, 21 Apr 2008 21:27:58 +0200
 
 libio-compress-zlib-perl (2.008-2) unstable; urgency=low
 

Modified: trunk/libio-compress-zlib-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libio-compress-zlib-perl/debian/rules?rev=18995&op=diff
==============================================================================
--- trunk/libio-compress-zlib-perl/debian/rules (original)
+++ trunk/libio-compress-zlib-perl/debian/rules Mon Apr 21 19:28:15 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:
@@ -25,7 +21,7 @@
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
@@ -39,25 +35,23 @@
 	dh_testroot
 	dh_clean -k
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	pod2man --section 3pm --name "IO::Compress::Zlib::FAQ"  pod/FAQ.pod > $(TMP)/usr/share/man/man3/IO::Compress::Zlib::FAQ.3pm
-
-	# 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
-
-	touch install-stamp
+	pod2man --section 3pm --name "IO::Compress::Zlib::FAQ" pod/FAQ.pod \
+		> $(TMP)/usr/share/man/man3/IO::Compress::Zlib::FAQ.3pm
+	[ ! -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
 	dh_testroot
+	dh_installexamples examples/*
 	dh_installdocs
 	dh_installchangelogs Changes
 	dh_perl
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -65,8 +59,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