[libextutils-autoinstall-perl] 06/13: Use debhelper 8 and tiny dh(1) debian/rules.
gregor herrmann
gregoa at debian.org
Fri Sep 13 14:15:58 UTC 2013
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libextutils-autoinstall-perl.
commit ba814e9d1fdc632539494eb919524f3193cd79ed
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Sep 13 16:07:50 2013 +0200
Use debhelper 8 and tiny dh(1) debian/rules.
---
debian/compat | 2 +-
debian/control | 2 +-
debian/libextutils-autoinstall-perl.docs | 1 +
debian/rules | 94 +++---------------------------
4 files changed, 11 insertions(+), 88 deletions(-)
diff --git a/debian/compat b/debian/compat
index b8626c4..45a4fb7 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+8
diff --git a/debian/control b/debian/control
index 96d4b93..3a1a229 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
Source: libextutils-autoinstall-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 4.0.2)
+Build-Depends: debhelper (>= 8)
Build-Depends-Indep: perl (>= 5.8.0-7)
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Bastian Blank <waldi at debian.org>
diff --git a/debian/libextutils-autoinstall-perl.docs b/debian/libextutils-autoinstall-perl.docs
new file mode 100644
index 0000000..1333ed7
--- /dev/null
+++ b/debian/libextutils-autoinstall-perl.docs
@@ -0,0 +1 @@
+TODO
diff --git a/debian/rules b/debian/rules
index 9911c5a..bc67c36 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,92 +1,14 @@
#!/usr/bin/make -f
-SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
-VERSION_DEBIAN := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
-VERSION := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,^[0-9]*:,,' -e 's,-[^-]*$$,,')
+BUILDHOME = $(CURDIR)/debian/build
-# 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
+%:
+ dh $@
-PACKAGE = $(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP = $(CURDIR)/debian/$(PACKAGE)
-TESTDIR =$(CURDIR)/debian/testdir
-
-build: build-stamp
-build-stamp:
- dh_testdir
-
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
- mkdir $(TESTDIR)
- HOME=$(TESTDIR) $(MAKE) test
-
- touch $@
-
-clean:
- dh_testdir
- rm -rf $(TESTDIR)
- rm -f build-stamp
-
- -$(MAKE) distclean
-
+override_dh_clean:
dh_clean
+ rm -rf $(BUILDHOME)
-install: build
- 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 $(TMP)/usr/lib/perl5
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir
- dh_testroot
-# dh_installcron
-# dh_installmenu
-# dh_installexamples
- dh_installdocs TODO README
- dh_installchangelogs Changes
- dh_perl
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-
-maintainerclean:
- rm -rf $(filter-out .svn .svk debian, $(wildcard * .[^.]*))
-
-DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)
-TAR_ORIG_NAME = $(SOURCE)_$(VERSION).orig.tar.gz
-TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
-
-orig: $(DIR_ORIG)
- rsync --delete --exclude debian --exclude .svk --exclude .svn --link-dest=$(DIR_ORIG)/ -a $(DIR_ORIG)/ .
-
-$(DIR_ORIG):
-ifeq ($(TAR_ORIG),)
- $(error Cannot find orig tarball $(TAR_ORIG_NAME))
-else
- mkdir -p ../orig
- tar -C ../orig -xzf $(TAR_ORIG)
-endif
-
-.PHONY: build clean binary-indep binary-arch binary
+override_dh_auto_test:
+ mkdir -p $(BUILDHOME)
+ HOME=$(BUILDHOME) dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libextutils-autoinstall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list