r17300 - in /trunk/libstring-escape-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Wed Mar 12 19:46:27 UTC 2008
Author: gregoa-guest
Date: Wed Mar 12 19:46:26 2008
New Revision: 17300
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17300
Log:
debian/rules: update based on dh-make-perl's templates.
Modified:
trunk/libstring-escape-perl/debian/changelog
trunk/libstring-escape-perl/debian/rules
Modified: trunk/libstring-escape-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-escape-perl/debian/changelog?rev=17300&op=diff
==============================================================================
--- trunk/libstring-escape-perl/debian/changelog (original)
+++ trunk/libstring-escape-perl/debian/changelog Wed Mar 12 19:46:26 2008
@@ -4,6 +4,7 @@
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467920).
+ * debian/rules: update based on dh-make-perl's templates.
* debian/watch: use dist-based URL.
* Set Standards-Version to 3.7.3 (no changes).
* debian/copyright:
@@ -11,7 +12,7 @@
- take copyright/license information from the module itself instead of
from the outdated README
- -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 12 Mar 2008 20:41:54 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 12 Mar 2008 20:43:58 +0100
libstring-escape-perl (2002.001-7) unstable; urgency=low
Modified: trunk/libstring-escape-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-escape-perl/debian/rules?rev=17300&op=diff
==============================================================================
--- trunk/libstring-escape-perl/debian/rules (original)
+++ trunk/libstring-escape-perl/debian/rules Wed Mar 12 19:46:26 2008
@@ -1,63 +1,71 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libstring-escape-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.
-PERL ?= /usr/bin/perl
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-package := $(firstword $(shell dh_listpackages))
-prefix := $(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
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+PACKAGE=$(shell dh_listpackages)
-tag:
- cvs tag -c -F $(subst .,_,debian_version_$(version))
-ifeq ($(findstring -,$(version)),)
- cvs tag -c -F $(subst .,_,upstream_version_$(version))
+ifndef PERL
+PERL = /usr/bin/perl
endif
-build: build-stamp
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
build-stamp:
dh_testdir
- $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
- $(MAKE) LD_RUN_PATH=
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
+
touch $@
-clean: checkroot
- rm -f build-stamp
- dh_clean
- -$(MAKE) distclean
+clean:
+ dh_testdir
+ dh_testroot
-binary-indep: checkroot build
- dh_clean
- dh_installdirs
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
- $(MAKE) test
- $(MAKE) pure_install DESTDIR=$(prefix)
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
- # As this is a architecture independent package, we are not
- # supposed to install stuff to /usr/lib. MakeMaker creates
- # the dirs, we delete them from the deb:
- [ ! -d $(prefix)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/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 t/*
dh_installdocs README
dh_installchangelogs
- dh_installexamples t/.
-
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary-arch: checkroot build
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-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