r20000 - in /trunk/libapache-dbi-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri May 16 13:16:48 UTC 2008


Author: gregoa
Date: Fri May 16 13:16:48 2008
New Revision: 20000

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

Modified:
    trunk/libapache-dbi-perl/debian/changelog
    trunk/libapache-dbi-perl/debian/rules

Modified: trunk/libapache-dbi-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapache-dbi-perl/debian/changelog?rev=20000&op=diff
==============================================================================
--- trunk/libapache-dbi-perl/debian/changelog (original)
+++ trunk/libapache-dbi-perl/debian/changelog Fri May 16 13:16:48 2008
@@ -2,6 +2,7 @@
 
   * New upstream release.
   * debian/watch: extended regexp for matching upstream releases.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregoa at debian.org>  Fri, 16 May 2008 15:10:07 +0200
 

Modified: trunk/libapache-dbi-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapache-dbi-perl/debian/rules?rev=20000&op=diff
==============================================================================
--- trunk/libapache-dbi-perl/debian/rules (original)
+++ trunk/libapache-dbi-perl/debian/rules Fri May 16 13:16:48 2008
@@ -1,19 +1,24 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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
 
-PACKAGE=$(shell dh_listpackages)
-TMP=$(CURDIR)/debian/$(PACKAGE)
+# 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
 
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	# Real tests require locally-accesible MySQL server
 	# We run $(MAKE) test anyway, at least to see if the module can
@@ -24,34 +29,36 @@
 clean:
 	dh_testdir
 	dh_testroot
-
 	dh_clean build-stamp install-stamp
-	[ ! -e Makefile ] || $(MAKE) distclean
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
 install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	
-	$(MAKE) DESTDIR=$(TMP) PREFIX=/usr install
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+	$(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_installexamples eg/*
 	dh_installdocs README traces.txt
-	dh_installexamples eg/*
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




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