r16672 - in /trunk/libmime-types-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Thu Mar 6 22:10:46 UTC 2008
Author: gregoa-guest
Date: Thu Mar 6 22:10:45 2008
New Revision: 16672
URL: http://svn.debian.org/wsvn/?sc=1&rev=16672
Log:
debian/rules: update with dh-make-perl's template's help.
Modified:
trunk/libmime-types-perl/debian/changelog
trunk/libmime-types-perl/debian/rules
Modified: trunk/libmime-types-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmime-types-perl/debian/changelog?rev=16672&op=diff
==============================================================================
--- trunk/libmime-types-perl/debian/changelog (original)
+++ trunk/libmime-types-perl/debian/changelog Thu Mar 6 22:10:45 2008
@@ -3,8 +3,9 @@
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467801).
* debian/watch: use dist-based URL.
* debian/copyright: update and convert to new format.
+ * debian/rules: update with dh-make-perl's template's help.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Thu, 06 Mar 2008 23:06:00 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Thu, 06 Mar 2008 23:06:27 +0100
libmime-types-perl (1.23-1) unstable; urgency=low
Modified: trunk/libmime-types-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmime-types-perl/debian/rules?rev=16672&op=diff
==============================================================================
--- trunk/libmime-types-perl/debian/rules (original)
+++ trunk/libmime-types-perl/debian/rules Thu Mar 6 22:10:45 2008
@@ -1,60 +1,71 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libmime-types-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)
-config: config-stamp
-config-stamp:
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
dh_testdir
- $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
+
touch $@
-build: build-stamp
-build-stamp: config-stamp
- $(MAKE)
- $(MAKE) test
+clean:
+ dh_testdir
+ dh_testroot
+
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
+
+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 $@
-clean: checkroot
- rm -f *-stamp
- dh_clean
- [ ! -f Makefile ] || $(MAKE) distclean
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-binary-indep: checkroot build
- dh_clean
- dh_installdirs
-
- $(MAKE) install PREFIX=$(prefix)
-
- # 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
-
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installexamples
dh_installdocs README
dh_installchangelogs ChangeLog
-
+ 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 config
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
More information about the Pkg-perl-cvs-commits
mailing list