r22834 - in /trunk/libxml-sax-expat-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sun Jul 6 01:05:21 UTC 2008
Author: gregoa
Date: Sun Jul 6 01:05:20 2008
New Revision: 22834
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22834
Log:
Refresh debian/rules, no functional changes; except: install new example
script.
Modified:
trunk/libxml-sax-expat-perl/debian/changelog
trunk/libxml-sax-expat-perl/debian/rules
Modified: trunk/libxml-sax-expat-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-sax-expat-perl/debian/changelog?rev=22834&op=diff
==============================================================================
--- trunk/libxml-sax-expat-perl/debian/changelog (original)
+++ trunk/libxml-sax-expat-perl/debian/changelog Sun Jul 6 01:05:20 2008
@@ -6,6 +6,8 @@
* Add /me to Uploaders.
* Wrap long lines in debian/control.
* debian/watch: extended regexp for matching upstream releases.
+ * Refresh debian/rules, no functional changes; except: install new example
+ script.
-- gregor herrmann <gregoa at debian.org> Sun, 06 Jul 2008 02:57:24 +0200
Modified: trunk/libxml-sax-expat-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-sax-expat-perl/debian/rules?rev=22834&op=diff
==============================================================================
--- trunk/libxml-sax-expat-perl/debian/rules (original)
+++ trunk/libxml-sax-expat-perl/debian/rules Sun Jul 6 01:05:20 2008
@@ -1,16 +1,24 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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
-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
+
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
- SKIP_SAX_INSTALL=1 perl Makefile.PL verbose INSTALLDIRS=vendor
+ SKIP_SAX_INSTALL=1 $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
$(MAKE) test
touch $@
@@ -18,34 +26,33 @@
clean:
dh_testdir
dh_testroot
-
- [ ! -f Makefile ] || $(MAKE) clean
- dh_clean Makefile.old build-stamp install-stamp
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
- $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)
-
- [ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
-
+ $(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:;
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
binary-indep: build install
dh_testdir
dh_testroot
+ dh_installexamples eg/*
dh_installdocs
- dh_installman
dh_installchangelogs Changes
- dh_link
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
dh_gencontrol
dh_md5sums
dh_builddeb
More information about the Pkg-perl-cvs-commits
mailing list