r13796 - in /trunk/libtest-distribution-perl/debian: changelog control rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Mon Jan 28 19:12:58 UTC 2008


Author: gregoa-guest
Date: Mon Jan 28 19:12:58 2008
New Revision: 13796

URL: http://svn.debian.org/wsvn/?sc=1&rev=13796
Log:
* Drop cdbs, create debian/rules from scratch (with the friendly help of
  the dh-make-perl templates).
* debian/control: move libmodule-build-perl from Build-Depends-Indep to
  Build-Depends, as demanded per policy (used in clean target).

Modified:
    trunk/libtest-distribution-perl/debian/changelog
    trunk/libtest-distribution-perl/debian/control
    trunk/libtest-distribution-perl/debian/rules

Modified: trunk/libtest-distribution-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/debian/changelog?rev=13796&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/debian/changelog (original)
+++ trunk/libtest-distribution-perl/debian/changelog Mon Jan 28 19:12:58 2008
@@ -22,8 +22,12 @@
   [ gregor herrmann ]
   * debian-control: replace libpathtools-perl with libfile-spec-perl (cf.
     #423738).
+  * Drop cdbs, create debian/rules from scratch (with the friendly help of
+    the dh-make-perl templates).
+  * debian/control: move libmodule-build-perl from Build-Depends-Indep to
+    Build-Depends, as demanded per policy (used in clean target).
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 28 Jan 2008 19:53:18 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 28 Jan 2008 20:07:22 +0100
 
 libtest-distribution-perl (1.26-1) unstable; urgency=low
 

Modified: trunk/libtest-distribution-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/debian/control?rev=13796&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/debian/control (original)
+++ trunk/libtest-distribution-perl/debian/control Mon Jan 28 19:12:58 2008
@@ -4,9 +4,9 @@
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jose Luis Rivas <ghostbar38 at gmail.com>, David Paleino <d.paleino at gmail.com>
 Build-Depends-Indep: perl, libfile-find-rule-perl (>= 0.03), libmodule-corelist-perl (>= 1.93),
- libtest-pod-perl (>= 0.95), libtest-pod-coverage-perl, libmodule-build-perl,
+ libtest-pod-perl (>= 0.95), libtest-pod-coverage-perl,
  libpod-coverage-perl (>= 0.17), libfile-spec-perl
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: debhelper (>= 5), libmodule-build-perl
 Standards-Version: 3.7.3
 Homepage: http://search.cpan.org/dist/Test-Distribution/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libtest-distribution-perl/

Modified: trunk/libtest-distribution-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/debian/rules?rev=13796&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/debian/rules (original)
+++ trunk/libtest-distribution-perl/debian/rules Mon Jan 28 19:12:58 2008
@@ -1,16 +1,77 @@
 #!/usr/bin/make -f
-  
-include /usr/share/cdbs/1/rules/debhelper.mk
+# 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.
+#
+# It was later modified by Jason Kohles <email at jasonkohles.com>
+# http://www.jasonkohles.com/ to support Module::Build installed modules
 
-build/libtest-distribution-perl::
-	/usr/bin/perl Build.PL --installdirs vendor --destdir $(DEB_DESTDIR)
-	./Build
-	./Build test
-install/libtest-distribution-perl::
-	./Build install
-	#find debian/libtest-distribution-perl -type f -name .packlist | xargs rm -f
-	rm -rfv debian/libtest-distribution-perl/usr/lib/
-cleanbuilddir/libtest-distribution-perl::
-	rm -rfv _build/
-	rm -rfv blib/*
-	rm -fv Build
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# 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=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add commands to compile the package here
+	$(PERL) Build.PL installdirs=vendor
+	$(PERL) Build
+	$(PERL) Build test
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	dh_clean build-stamp install-stamp Changes.txt
+
+	# Add commands to clean up after the build process here
+	[ ! -f Build ] || $(PERL) Build distclean
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	# Add commands to install the package into $(TMP) here
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
+	pod2text $(CURDIR)/Changes.pod > $(CURDIR)/Changes.txt
+
+	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 $(CURDIR)/Changes.txt
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	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




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