r23058 - in /trunk/libwww-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jul 12 12:28:47 UTC 2008


Author: gregoa
Date: Sat Jul 12 12:28:46 2008
New Revision: 23058

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

Modified:
    trunk/libwww-perl/debian/changelog
    trunk/libwww-perl/debian/rules

Modified: trunk/libwww-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-perl/debian/changelog?rev=23058&op=diff
==============================================================================
--- trunk/libwww-perl/debian/changelog (original)
+++ trunk/libwww-perl/debian/changelog Sat Jul 12 12:28:46 2008
@@ -7,6 +7,7 @@
   * debian/copyright: update years of copyright.
   * debian/control: change my email address.
   * Set Standards-Version to 3.8.0 (no changes).
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregoa at debian.org>  Sat, 12 Jul 2008 13:48:37 +0200
 

Modified: trunk/libwww-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-perl/debian/rules?rev=23058&op=diff
==============================================================================
--- trunk/libwww-perl/debian/rules (original)
+++ trunk/libwww-perl/debian/rules Sat Jul 12 12:28:46 2008
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
-# -*- Makefile -*-
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -8,30 +11,9 @@
 # always return the default without waiting for user input.
 export PERL_MM_USE_DEFAULT=1
 
+PERL   ?= /usr/bin/perl
 PACKAGE = $(shell dh_listpackages)
-
-# Make sure perl is defined (allow overriding from the command line
-PERL ?= /usr/bin/perl
-
-TMP = $(CURDIR)/debian/$(PACKAGE)
-
-binary: binary-indep binary-arch
-
-binary-arch:
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs README README.SSL
-	dh_installchangelogs Changes
-	dh_link
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_perl
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
@@ -42,20 +24,41 @@
 	if [ -f t/live/ENABLED ]; then rm t/live/ENABLED; fi
 	if [ -f t/live/ZLIB_OK ]; then rm t/live/ZLIB_OK; fi
 	$(MAKE) test
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
 	dh_clean build-stamp install-stamp
-	if [ -e Makefile ]; then $(MAKE) distclean; fi
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 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
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-	touch install-stamp
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-.PHONY: binary binary-arch binary-indep build clean install
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs README README.SSL
+	dh_installchangelogs Changes
+	dh_link
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install




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