r23399 - in /trunk/libset-object-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jul 19 13:19:35 UTC 2008
Author: gregoa
Date: Sat Jul 19 13:19:32 2008
New Revision: 23399
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=23399
Log:
Refresh debian/rules, no functional changes.
Modified:
trunk/libset-object-perl/debian/changelog
trunk/libset-object-perl/debian/rules
Modified: trunk/libset-object-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libset-object-perl/debian/changelog?rev=23399&op=diff
==============================================================================
--- trunk/libset-object-perl/debian/changelog (original)
+++ trunk/libset-object-perl/debian/changelog Sat Jul 19 13:19:32 2008
@@ -6,6 +6,7 @@
upstream source.
* Set Standards-Version to 3.8.0 (no changes).
* debian/control: change my email address.
+ * Refresh debian/rules, no functional changes.
-- gregor herrmann <gregoa at debian.org> Sat, 19 Jul 2008 15:08:21 +0200
Modified: trunk/libset-object-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libset-object-perl/debian/rules?rev=23399&op=diff
==============================================================================
--- trunk/libset-object-perl/debian/rules (original)
+++ trunk/libset-object-perl/debian/rules Sat Jul 19 13:19:32 2008
@@ -1,70 +1,74 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libset-object-perl
-PERL ?= /usr/bin/perl
+#!/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.
-package :=$(firstword $(shell dh_listpackages))
-TMP := $(CURDIR)/debian/$(package)
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-# Allow disabling build optimation by setting noopt in
+# 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
+
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimisation by setting noopt in
# $DEB_BUILD_OPTIONS
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
+ CFLAGS += -O0
else
- CFLAGS += -O2
+ CFLAGS += -O2
endif
-config: config-stamp
-config-stamp:
+build: build-stamp
+build-stamp:
dh_testdir
- $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
- touch $@
-
-build: build-stamp
-build-stamp: config-stamp
- dh_testdir
- $(MAKE) LD_RUN_PATH= OPTIMIZE="$(CFLAGS)"
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ perldoc -t Changes.pod > debian/changelog_generated.txt
$(MAKE) test
touch $@
-clean: checkroot
- rm -f debian/changelog_generated.txt
- dh_clean config-stamp build-stamp install-stamp
- [ ! -f Makefile ] || $(MAKE) distclean
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean build-stamp install-stamp debian/changelog_generated.txt
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
-install-stamp: checkroot
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
dh_clean -k
-
- $(MAKE) pure_install DESTDIR=$(TMP) PREFIX=/usr
- perldoc -t Changes.pod > debian/changelog_generated.txt
- # As this is a architecture dependent package, we are not
- # supposed to install stuff to /usr/share. MakeMaker creates
- # the dirs, we delete them from the deb:
- [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/share/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/share/perl5
touch $@
-binary-indep:
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do here for an architecture-dependent package
-
-binary-arch: checkroot install
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
dh_installdocs
dh_installchangelogs debian/changelog_generated.txt
+ dh_shlibdeps
dh_strip
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
- dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary: binary-indep binary-arch
-
-checkroot:
- dh_testdir
- dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build config
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list