r16855 - in /trunk/libfile-touch-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sat Mar 8 11:20:11 UTC 2008
Author: gregoa-guest
Date: Sat Mar 8 11:12:29 2008
New Revision: 16855
URL: http://svn.debian.org/wsvn/?sc=1&rev=16855
Log:
debian/rules: update based on dh-make-perl's templates.
Modified:
trunk/libfile-touch-perl/debian/changelog
trunk/libfile-touch-perl/debian/rules
Modified: trunk/libfile-touch-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libfile-touch-perl/debian/changelog?rev=16855&op=diff
==============================================================================
--- trunk/libfile-touch-perl/debian/changelog (original)
+++ trunk/libfile-touch-perl/debian/changelog Sat Mar 8 11:12:29 2008
@@ -8,12 +8,13 @@
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467779).
+ * 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).
* Add /me to Uploaders.
* debian/copyright: update years of copyright.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 12:07:32 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 12:09:53 +0100
libfile-touch-perl (0.02-1) unstable; urgency=low
Modified: trunk/libfile-touch-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libfile-touch-perl/debian/rules?rev=16855&op=diff
==============================================================================
--- trunk/libfile-touch-perl/debian/rules (original)
+++ trunk/libfile-touch-perl/debian/rules Sat Mar 8 11:12:29 2008
@@ -1,61 +1,70 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libfile-touch-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)/usr
+# 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
- [ ! -f Makefile ] || $(MAKE) distclean
- dh_clean
+clean:
+ dh_testdir
+ dh_testroot
-binary-indep: checkroot build
- dh_clean
- dh_installdirs
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
- $(MAKE) pure_install PREFIX=$(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)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/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_installdocs
dh_installchangelogs Changes
-
+ 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