r22538 - in /trunk/libevent-rpc-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Mon Jun 30 18:18:05 UTC 2008


Author: gregoa
Date: Mon Jun 30 18:18:04 2008
New Revision: 22538

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22538
Log:
Refresh debian/rules, no functional changes, except: don't install README
any more (text version of the POD documentation).

Modified:
    trunk/libevent-rpc-perl/debian/changelog
    trunk/libevent-rpc-perl/debian/rules

Modified: trunk/libevent-rpc-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libevent-rpc-perl/debian/changelog?rev=22538&op=diff
==============================================================================
--- trunk/libevent-rpc-perl/debian/changelog (original)
+++ trunk/libevent-rpc-perl/debian/changelog Mon Jun 30 18:18:04 2008
@@ -6,6 +6,8 @@
   * debian/control: change my email address.
   * debian/copyright: point to author- and version-independent upstream source
     URL.
+  * Refresh debian/rules, no functional changes, except: don't install README
+    any more (text version of the POD documentation).
 
  -- gregor herrmann <gregoa at debian.org>  Mon, 30 Jun 2008 20:08:37 +0200
 

Modified: trunk/libevent-rpc-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libevent-rpc-perl/debian/rules?rev=22538&op=diff
==============================================================================
--- trunk/libevent-rpc-perl/debian/rules (original)
+++ trunk/libevent-rpc-perl/debian/rules Mon Jun 30 18:18:04 2008
@@ -11,58 +11,45 @@
 # 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:
 	dh_testdir
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-Wall -O2 -g"
-	touch build-stamp
+	$(MAKE)
+	$(MAKE) test
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp install-stamp
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
-	dh_clean
 
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(MAKE) test
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
-	# fix ö in manpages
-	sed -i -e 's/ö/\\\[:o\]/' $(TMP)/usr/share/man/man3/*
-
-	# 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
+	[ ! -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 README
+	dh_installdocs
 	dh_installchangelogs Changes
 	dh_perl
-	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -71,4 +58,4 @@
 	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