r19526 - in /trunk/libtext-wrapper-perl/debian: changelog rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue May 6 14:32:57 UTC 2008
Author: dmn
Date: Tue May 6 14:32:56 2008
New Revision: 19526
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19526
Log:
* refresh debian/rules from current dh-make-perl templates
+ stop installing redundant README
Modified:
trunk/libtext-wrapper-perl/debian/changelog
trunk/libtext-wrapper-perl/debian/rules
Modified: trunk/libtext-wrapper-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-wrapper-perl/debian/changelog?rev=19526&op=diff
==============================================================================
--- trunk/libtext-wrapper-perl/debian/changelog (original)
+++ trunk/libtext-wrapper-perl/debian/changelog Tue May 6 14:32:56 2008
@@ -9,6 +9,8 @@
debian at 420.am>);
Uploaders.
* add myself to Uploaders
+ * refresh debian/rules from current dh-make-perl templates
+ + stop installing redundant README
-- Damyan Ivanov <dmn at debian.org> Tue, 06 May 2008 17:25:45 +0300
Modified: trunk/libtext-wrapper-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-wrapper-perl/debian/rules?rev=19526&op=diff
==============================================================================
--- trunk/libtext-wrapper-perl/debian/rules (original)
+++ trunk/libtext-wrapper-perl/debian/rules Tue May 6 14:32:56 2008
@@ -1,88 +1,63 @@
#!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
+# 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
-export DH_COMPAT=3
-PACKAGE=$(shell dh_listpackages)
+# 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
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP =`pwd`/debian/$(PACKAGE)
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
-
-
- # Add here commands to compile the package.
+ # Add commands to compile the package here
$(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="-O2 -g -Wall"
-
- touch build-stamp
+ $(MAKE)
+ $(MAKE) test
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ dh_clean build-stamp install-stamp
+ # Add commands to clean up after the build process here
+ [ ! -f Makefile ] || $(MAKE) realclean
- # Add here commands to clean up after the build process.
- -$(MAKE) realclean
-
- dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
+ # Add commands to install the package into $(TMP) here
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/lib/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/lib/perl5
+ touch $@
- # Add here commands to install the package into debian/tmp.
- #$(MAKE) install DESTDIR=`pwd`/debian/tmp
- $(MAKE) install PREFIX=$(TMP)/usr
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-
-# 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_testversion
dh_testdir
dh_testroot
- dh_installdocs README
- dh_installexamples
- dh_installmenu
-# dh_installemacsen
-# dh_installinit
- dh_installcron
- dh_installmanpages
-# dh_undocumented
+ dh_installdocs
dh_installchangelogs Changes
- dh_link
- dh_strip
+ dh_perl
dh_compress
dh_fixperms
-# dh_makeshlibs
dh_installdeb
- dh_perl
- dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb --destdir=$(DESTDIR)
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+ dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list