r22005 - in /trunk/libtime-piece-mysql-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri Jun 20 19:20:57 UTC 2008


Author: gregoa
Date: Fri Jun 20 19:20:57 2008
New Revision: 22005

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

Modified:
    trunk/libtime-piece-mysql-perl/debian/changelog
    trunk/libtime-piece-mysql-perl/debian/rules

Modified: trunk/libtime-piece-mysql-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtime-piece-mysql-perl/debian/changelog?rev=22005&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/changelog (original)
+++ trunk/libtime-piece-mysql-perl/debian/changelog Fri Jun 20 19:20:57 2008
@@ -14,6 +14,8 @@
   [ gregor herrmann ]
   * New upstream release.
   * Revert the directly applied fix for MySQL 4.1+, fixed upstream.
+  * Refresh debian/rules, no functional changes, except: don't install README
+    any more.
 
  -- Damyan Ivanov <dmn at debian.org>  Sat, 26 Jan 2008 10:16:03 +0200
 

Modified: trunk/libtime-piece-mysql-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtime-piece-mysql-perl/debian/rules?rev=22005&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/rules (original)
+++ trunk/libtime-piece-mysql-perl/debian/rules Fri Jun 20 19:20:57 2008
@@ -1,29 +1,60 @@
 #!/usr/bin/make -f
+# 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.
 
-build : build-stamp
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-build-stamp : Makefile.PL
-	perl Makefile.PL INSTALLDIRS=vendor
+# 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
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+	touch $@
 
-binary : binary-arch binary-indep
+clean:
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-binary-arch :
+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-indep : build-stamp
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+	dh_testdir
 	dh_testroot
-	$(MAKE) PREFIX=$(CURDIR)/debian/libtime-piece-mysql-perl/usr install
+	dh_installdocs
+	dh_installchangelogs Changes
 	dh_perl
-	dh_installchangelogs Changes
-	dh_installdocs README
 	dh_compress
 	dh_fixperms
+	dh_installdeb
 	dh_gencontrol
+	dh_md5sums
 	dh_builddeb
 
-clean : 
-	if [ -f Makefile ]; then $(MAKE) clean; fi
-	dh_clean Makefile Makefile.old build-stamp
-
-.PHONY : build binary binary-arch binary-dep clean
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install




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