r15604 - in /trunk/libxml-sax-machines-perl: Makefile.PL debian/changelog debian/control debian/patches/ debian/patches/series debian/patches/vendorlibs.patch debian/rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Mon Feb 25 18:59:15 UTC 2008


Author: gregoa-guest
Date: Mon Feb 25 18:59:13 2008
New Revision: 15604

URL: http://svn.debian.org/wsvn/?sc=1&rev=15604
Log:
* debian/rules:
  - rewrite from scratch with dh-make-perl template
  - install README and TODO
* Split out patch for Makefile.PL into debian/patches/vendorlibs.patch,
  adapt slightly to work with current debian/rules. Add quilt framework.

Added:
    trunk/libxml-sax-machines-perl/debian/patches/
    trunk/libxml-sax-machines-perl/debian/patches/series
    trunk/libxml-sax-machines-perl/debian/patches/vendorlibs.patch
Modified:
    trunk/libxml-sax-machines-perl/Makefile.PL
    trunk/libxml-sax-machines-perl/debian/changelog
    trunk/libxml-sax-machines-perl/debian/control
    trunk/libxml-sax-machines-perl/debian/rules

Modified: trunk/libxml-sax-machines-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/Makefile.PL?rev=15604&op=diff
==============================================================================
--- trunk/libxml-sax-machines-perl/Makefile.PL (original)
+++ trunk/libxml-sax-machines-perl/Makefile.PL Mon Feb 25 18:59:13 2008
@@ -47,5 +47,5 @@
 ## NOTE THE LITERAL TABS!!
 sub MY::postamble { return <<'POSTAMBLE_END' }
 install_site_config:
-	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -I$(INST_LIB) -I$(INSTALLVENDORLIB) -MXML::SAX::Machines::ConfigHelper -we 'XML::SAX::Machines::ConfigHelper::_write_site_config_if_absent(shift)' $(INSTALLVENDORLIB)
+	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -I$(INST_LIB) -I$(INSTALLSITELIB) -MXML::SAX::Machines::ConfigHelper -we 'XML::SAX::Machines::ConfigHelper::_write_site_config_if_absent(shift)' $(INSTALLSITELIB)
 POSTAMBLE_END

Modified: trunk/libxml-sax-machines-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/debian/changelog?rev=15604&op=diff
==============================================================================
--- trunk/libxml-sax-machines-perl/debian/changelog (original)
+++ trunk/libxml-sax-machines-perl/debian/changelog Mon Feb 25 18:59:13 2008
@@ -5,8 +5,13 @@
   * Set Maintainer to Debian Perl Group.
   * Use dist-based URL in debian/watch.
   * debian/rules: delete /usr/lib/perl5 only if it exists.
+  * debian/rules:
+    - rewrite from scratch with dh-make-perl template
+    - install README and TODO
+  * Split out patch for Makefile.PL into debian/patches/vendorlibs.patch,
+    adapt slightly to work with current debian/rules. Add quilt framework.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Dec 2007 18:55:44 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 25 Feb 2008 19:58:35 +0100
 
 libxml-sax-machines-perl (0.41-2) unstable; urgency=low
 

Modified: trunk/libxml-sax-machines-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/debian/control?rev=15604&op=diff
==============================================================================
--- trunk/libxml-sax-machines-perl/debian/control (original)
+++ trunk/libxml-sax-machines-perl/debian/control Mon Feb 25 18:59:13 2008
@@ -7,7 +7,7 @@
 Homepage: http://search.cpan.org/dist/XML-SAX-Machines/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libxml-sax-machines-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-sax-machines-perl/
-Build-Depends-Indep: debhelper (>= 4.1), perl, libxml-sax-perl (>= 0.10), libxml-sax-writer-perl (>= 0.42)
+Build-Depends-Indep: debhelper (>= 4.1), quilt, perl, libxml-sax-perl (>= 0.10), libxml-sax-writer-perl (>= 0.42)
 
 Package: libxml-sax-machines-perl
 Section: perl

Added: trunk/libxml-sax-machines-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/debian/patches/series?rev=15604&op=file
==============================================================================
--- trunk/libxml-sax-machines-perl/debian/patches/series (added)
+++ trunk/libxml-sax-machines-perl/debian/patches/series Mon Feb 25 18:59:13 2008
@@ -1,0 +1,1 @@
+vendorlibs.patch

Added: trunk/libxml-sax-machines-perl/debian/patches/vendorlibs.patch
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/debian/patches/vendorlibs.patch?rev=15604&op=file
==============================================================================
--- trunk/libxml-sax-machines-perl/debian/patches/vendorlibs.patch (added)
+++ trunk/libxml-sax-machines-perl/debian/patches/vendorlibs.patch Mon Feb 25 18:59:13 2008
@@ -1,0 +1,11 @@
+Index: Makefile.PL
+===================================================================
+--- libxml-sax-machines-perl.orig/Makefile.PL	(revision 15603)
++++ libxml-sax-machines-perl/Makefile.PL	(working copy)
+@@ -47,5 +47,5 @@
+ ## NOTE THE LITERAL TABS!!
+ sub MY::postamble { return <<'POSTAMBLE_END' }
+ install_site_config:
+-	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -I$(INST_LIB) -I$(INSTALLSITELIB) -MXML::SAX::Machines::ConfigHelper -we 'XML::SAX::Machines::ConfigHelper::_write_site_config_if_absent(shift)' $(INSTALLSITELIB)
++	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -I$(INST_LIB) -I$(DESTINSTALLVENDORLIB) -MXML::SAX::Machines::ConfigHelper -we 'XML::SAX::Machines::ConfigHelper::_write_site_config_if_absent(shift)' $(DESTINSTALLVENDORLIB)
+ POSTAMBLE_END

Modified: trunk/libxml-sax-machines-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-machines-perl/debian/rules?rev=15604&op=diff
==============================================================================
--- trunk/libxml-sax-machines-perl/debian/rules (original)
+++ trunk/libxml-sax-machines-perl/debian/rules Mon Feb 25 18:59:13 2008
@@ -1,54 +1,73 @@
 #!/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
 
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
+include /usr/share/quilt/quilt.make
 
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+# 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)
 
-build:
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
-clean:
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+
+	touch $@
+
+clean: unpatch
 	dh_testdir
 	dh_testroot
 
-	-$(MAKE) clean
-	rm -f Makefile.old
-	dh_clean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
-	[ ! -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
 
-binary-arch:;
+	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_installman
 	dh_installexamples
+	dh_installdocs README TODO
 	dh_installchangelogs CHANGES
-	dh_link
-	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	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 configure
+.PHONY: build clean binary-indep binary-arch binary




More information about the Pkg-perl-cvs-commits mailing list