r15225 - in /trunk/image-size/debian: changelog control rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Wed Feb 20 18:03:42 UTC 2008
Author: gregoa-guest
Date: Wed Feb 20 18:03:41 2008
New Revision: 15225
URL: http://svn.debian.org/wsvn/?sc=1&rev=15225
Log:
debian/rules: switch to using Module::Build instead of MakeMaker; move
libmodule-build-perl to Build-Depends.
Modified:
trunk/image-size/debian/changelog
trunk/image-size/debian/control
trunk/image-size/debian/rules
Modified: trunk/image-size/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/image-size/debian/changelog?rev=15225&op=diff
==============================================================================
--- trunk/image-size/debian/changelog (original)
+++ trunk/image-size/debian/changelog Wed Feb 20 18:03:41 2008
@@ -7,8 +7,10 @@
* debian/control: use author-agnostic Homepage.
* Refresh patch imgsize-fixes.
* Set debhelper compatibility level to 6.
+ * debian/rules: switch to using Module::Build instead of MakeMaker; move
+ libmodule-build-perl to Build-Depends.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 20 Feb 2008 18:53:59 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 20 Feb 2008 19:01:57 +0100
image-size (3.1-3) unstable; urgency=low
Modified: trunk/image-size/debian/control
URL: http://svn.debian.org/wsvn/trunk/image-size/debian/control?rev=15225&op=diff
==============================================================================
--- trunk/image-size/debian/control (original)
+++ trunk/image-size/debian/control Wed Feb 20 18:03:41 2008
@@ -4,8 +4,8 @@
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Christoph Berg <myon at debian.org>
Standards-Version: 3.7.3
-Build-Depends: debhelper (>> 6), quilt
-Build-Depends-Indep: perl, libmodule-build-perl, libcompress-zlib-perl
+Build-Depends: debhelper (>> 6), quilt, libmodule-build-perl
+Build-Depends-Indep: perl, libcompress-zlib-perl
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/image-size/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/image-size/
Homepage: http://search.cpan.org/dist/Image-Size/
Modified: trunk/image-size/debian/rules
URL: http://svn.debian.org/wsvn/trunk/image-size/debian/rules?rev=15225&op=diff
==============================================================================
--- trunk/image-size/debian/rules (original)
+++ trunk/image-size/debian/rules Wed Feb 20 18:03:41 2008
@@ -1,48 +1,75 @@
#!/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.
+#
+# It was later modified by Jason Kohles <email at jasonkohles.com>
+# http://www.jasonkohles.com/ to support Module::Build installed modules
+
+# 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
include /usr/share/quilt/quilt.make
-PERL ?= /usr/bin/perl
+PACKAGE=$(shell dh_listpackages)
-package := $(firstword $(shell dh_listpackages))
-TMP := $(CURDIR)/debian/$(package)/
+ifndef PERL
+PERL = /usr/bin/perl
+endif
-build build-indep: build-stamp
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
- $(PERL) Makefile.PL installdirs=vendor destdir=$(TMP)
- $(MAKE)
- $(MAKE) test
+
+ $(PERL) Build.PL installdirs=vendor
+ $(PERL) Build
+ $(PERL) Build test
+
touch $@
-
-build-arch:
clean: unpatch
dh_testdir
- [ ! -f Makefile ] || $(MAKE) distclean
- rm -f build-stamp Makefile
- dh_clean
+ dh_testroot
-binary binary-indep: build
+ dh_clean build-stamp install-stamp
+ [ ! -f Build ] || $(PERL) Build distclean
+
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
- dh_clean
- dh_installdirs
-
- $(MAKE) install
-
+ dh_clean -k
+
+ $(PERL) Build install destdir=$(TMP) create_packlist=0
+
+ touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
dh_installdocs README
+ dh_installexamples ex/*
dh_installchangelogs ChangeLog
- dh_installexamples ex/*
-
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary-arch:
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-.PHONY: binary binary-arch binary-indep clean build build-arch build-indep
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
More information about the Pkg-perl-cvs-commits
mailing list