[libclass-throwable-perl] 09/10: Refactor d/rules
Lucas Kanashiro
kanashiro-guest at moszumanska.debian.org
Thu Aug 20 10:59:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository libclass-throwable-perl.
commit 03f5c6a1afb5f2f69dff30866c70c835dd5f3399
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date: Thu Aug 20 07:55:26 2015 -0300
Refactor d/rules
---
debian/changelog | 1 +
debian/rules | 69 ++------------------------------------------------------
2 files changed, 3 insertions(+), 67 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1a92d01..9208686 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,6 +47,7 @@ libclass-throwable-perl (0.13-1) UNRELEASED; urgency=low
* Add autopkgtest-pkg-perl
* Update short and long description
* Update d/copyright in compliance with DEP-5
+ * Refactor d/rules
-- Lucas Kanashiro <kanashiro.duarte at gmail.com> Thu, 20 Aug 2015 07:30:55 -0300
diff --git a/debian/rules b/debian/rules
index c0ded00..abde6ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,70 +1,5 @@
#!/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.
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+ dh $@
-# 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
-
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
- $(MAKE) test
-
- touch $@
-
-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 $@
-
-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_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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclass-throwable-perl.git
More information about the Pkg-perl-cvs-commits
mailing list