r18407 - in /trunk/libtext-csv-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Tue Apr 8 17:41:38 UTC 2008


Author: gregoa-guest
Date: Tue Apr  8 17:41:37 2008
New Revision: 18407

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

Modified:
    trunk/libtext-csv-perl/debian/changelog
    trunk/libtext-csv-perl/debian/rules

Modified: trunk/libtext-csv-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-csv-perl/debian/changelog?rev=18407&op=diff
==============================================================================
--- trunk/libtext-csv-perl/debian/changelog (original)
+++ trunk/libtext-csv-perl/debian/changelog Tue Apr  8 17:41:37 2008
@@ -4,8 +4,9 @@
   * debian/patches: refresh & update; remove dpatch hash-bangs; add new() to
     the glob-copied functions in CSV.pm, change "usage:" line in CSV_XS.pm,
     rename pod patch into 03_pod.patch.
-
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 08 Apr 2008 19:30:11 +0200
+  * Refresh debian/rules, no functional changes.
+
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 08 Apr 2008 19:39:37 +0200
 
 libtext-csv-perl (0.37-1) unstable; urgency=low
 

Modified: trunk/libtext-csv-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-csv-perl/debian/rules?rev=18407&op=diff
==============================================================================
--- trunk/libtext-csv-perl/debian/rules (original)
+++ trunk/libtext-csv-perl/debian/rules Tue Apr  8 17:41:37 2008
@@ -1,65 +1,78 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libtext-csv-perl
+#!/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.
 
-# Allow disabling build optimation by setting noopt in
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+# 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)
+
+# Allow disabling build optimisation by setting noopt in
 # $DEB_BUILD_OPTIONS
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-    CFLAGS += -O0
+        CFLAGS += -O0
 else
-    CFLAGS += -O2
+        CFLAGS += -O2
 endif
 
-include /usr/share/quilt/quilt.make
-
-PERL	?= /usr/bin/perl
-
-package	:= $(firstword $(shell dh_listpackages))
-tmp	:= $(CURDIR)/debian/$(package)
-
-build:	build-stamp
+build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
-	$(MAKE) LD_RUN_PATH= OPTIMIZE="$(CFLAGS)"
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
 	$(MAKE) test
 	touch $@
 
-clean:	checkroot unpatch
-	rm -f build-stamp
-	dh_clean
-	[ ! -f Makefile ] || $(MAKE) distclean
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-binary-indep:	checkroot build
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/share/perl5
+	touch $@
 
-binary-arch:	checkroot build
-	dh_clean
-	dh_installdirs
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do here for an architecture-dependent package
 
-	$(MAKE) install DESTDIR=$(tmp) PREFIX=/usr
-	[ ! -d $(tmp)/usr/share/perl5 ] || rmdir --parents --ignore-fail-on-non-empty $(tmp)/usr/share/perl5
-
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installexamples examples/*
 	dh_installdocs README
-	dh_installexamples examples/*
 	dh_installchangelogs ChangeLog
 	dh_installman debian/Text::CSV.3pm
 	dh_link usr/lib/perl5/Text/CSV_XS.pm usr/lib/perl5/Text/CSV.pod
-
+	dh_shlibdeps
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
-	dh_shlibdeps
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary:	binary-indep binary-arch
-
-checkroot:
-	dh_testdir
-	dh_testroot
-
-.PHONY:	binary binary-arch binary-indep clean checkroot build
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install




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