[liburi-find-perl] 09/31: fix makefile
gregor herrmann
gregoa at debian.org
Sat Jul 25 17:41:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository liburi-find-perl.
commit 505f6aa78ca8a1a4fd103ef4584dd0f21744c2bd
Author: Dominic Hargreaves <dom at earth.li>
Date: Sun Jun 21 17:25:45 2009 +0000
fix makefile
---
debian/changelog | 3 ++-
debian/rules | 63 ++++++++++++++++----------------------------------------
2 files changed, 20 insertions(+), 46 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cc2213a..04e7141 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
liburi-find-perl (20090319-1) unstable; urgency=low
* New upstream release
+ - Refresh debian rules file for Module::Build support
* Bump debhelper compat version
* Update Standards-Version (no changes)
- -- Dominic Hargreaves <dom at earth.li> Sun, 21 Jun 2009 18:10:56 +0100
+ -- Dominic Hargreaves <dom at earth.li> Sun, 21 Jun 2009 18:25:33 +0100
liburi-find-perl (0.16-2) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index 7f55fef..b76425d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
# 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
@@ -11,71 +14,44 @@
# 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)
-
-# Allow disabling build optimation by setting noopt in
-# $DEB_BUILD_OPTIONS
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
-
# Add commands to compile the package here
- $(PERL) Build.PL --force installdirs=vendor
- OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH="" ./Build
-
- touch build-stamp
+ $(PERL) Build.PL installdirs=vendor
+ $(PERL) Build
+ $(PERL) Build test
+ touch $@
clean:
dh_testdir
dh_testroot
-
- # Add commands to clean up after the build process here
- ./Build realclean || true
-
dh_clean build-stamp install-stamp
+ # Add commands to clean up after the build process here
+ [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
- ./Build test
- ./Build install destdir=$(TMP)
-
- # As this is a architecture independent package, we are not supposed to install
- # stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
- [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
-
- touch install-stamp
+ # Add commands to install the package into $(TMP) here
+ $(PERL) Build install destdir=$(TMP) create_packlist=0
+ touch $@
binary-arch:
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-independent package
binary-indep: build install
dh_testdir
dh_testroot
-# dh_installcron
-# dh_installmenu
-# dh_installexamples
- dh_installdocs README
+ dh_installdocs README TODO
dh_installchangelogs Changes
dh_perl
- dh_link
- dh_strip
dh_compress
dh_fixperms
dh_installdeb
@@ -83,8 +59,5 @@ binary-indep: build install
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
+.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/liburi-find-perl.git
More information about the Pkg-perl-cvs-commits
mailing list