r22804 - in /trunk/libhash-case-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jul 5 15:23:56 UTC 2008


Author: gregoa
Date: Sat Jul  5 15:23:55 2008
New Revision: 22804

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22804
Log:
Refresh debian/rules, no functional changes, except: don't install README
any more (installation instructions).

Modified:
    trunk/libhash-case-perl/debian/changelog
    trunk/libhash-case-perl/debian/rules

Modified: trunk/libhash-case-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhash-case-perl/debian/changelog?rev=22804&op=diff
==============================================================================
--- trunk/libhash-case-perl/debian/changelog (original)
+++ trunk/libhash-case-perl/debian/changelog Sat Jul  5 15:23:55 2008
@@ -14,6 +14,8 @@
     license.
   * Add /me to Uploaders.
   * Set Standards-Version to 3.8.0 (no changes).
+  * Refresh debian/rules, no functional changes, except: don't install README
+    any more (installation instructions).
 
  -- David Paleino <d.paleino at gmail.com>  Fri, 22 Feb 2008 12:51:26 +0100
 

Modified: trunk/libhash-case-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhash-case-perl/debian/rules?rev=22804&op=diff
==============================================================================
--- trunk/libhash-case-perl/debian/rules (original)
+++ trunk/libhash-case-perl/debian/rules Sat Jul  5 15:23:55 2008
@@ -11,49 +11,42 @@
 # 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 \
-		INSTALLVENDORARCH=/usr/share/perl5/ \
-		VENDORARCHEXP=/usr/share/perl5/
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-
 	dh_clean build-stamp install-stamp
-
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-
 	$(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:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
+	dh_installdocs
 	dh_installchangelogs ChangeLog
 	dh_perl
 	dh_compress
@@ -63,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