r17268 - in /trunk/libtest-pod-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Wed Mar 12 18:46:38 UTC 2008
Author: gregoa-guest
Date: Wed Mar 12 18:46:37 2008
New Revision: 17268
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17268
Log:
debian/rules: update based on dh-make-perl's templates.
Modified:
trunk/libtest-pod-perl/debian/changelog
trunk/libtest-pod-perl/debian/rules
Modified: trunk/libtest-pod-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-pod-perl/debian/changelog?rev=17268&op=diff
==============================================================================
--- trunk/libtest-pod-perl/debian/changelog (original)
+++ trunk/libtest-pod-perl/debian/changelog Wed Mar 12 18:46:37 2008
@@ -1,10 +1,11 @@
libtest-pod-perl (1.26-2) UNRELEASED; urgency=low
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467980).
+ * debian/rules: update based on dh-make-perl's templates.
* debian/watch: improved regexp for matching upstream releases.
* debian/copyright: add additional copyright holder.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 12 Mar 2008 19:43:14 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 12 Mar 2008 19:45:04 +0100
libtest-pod-perl (1.26-1) unstable; urgency=low
Modified: trunk/libtest-pod-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-pod-perl/debian/rules?rev=17268&op=diff
==============================================================================
--- trunk/libtest-pod-perl/debian/rules (original)
+++ trunk/libtest-pod-perl/debian/rules Wed Mar 12 18:46:37 2008
@@ -1,53 +1,70 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
+# 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
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
-PERL=/usr/bin/perl
+PACKAGE=$(shell dh_listpackages)
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
- $(PERL) Makefile.PL verbose INSTALLDIRS=vendor
- $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
$(MAKE) test
+
touch $@
+
clean:
dh_testdir
dh_testroot
- [ ! -f Makefile ] || $(MAKE) distclean
+
dh_clean build-stamp install-stamp
- dh_clean
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- $(MAKE) install_vendor PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr
- [ ! -d $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(PACKAGE)/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:;
+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_installdeb
- dh_perl
dh_gencontrol
dh_md5sums
dh_builddeb
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list