r11798 - in /trunk/libmarc-xml-perl/debian: changelog control rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Fri Dec 28 14:14:35 UTC 2007


Author: dmn
Date: Fri Dec 28 14:14:35 2007
New Revision: 11798

URL: http://svn.debian.org/wsvn/?sc=1&rev=11798
Log:
* Migrate from cdbs to plain debhelper
  + drop cdbs and patchutils from build-depends
  + use dh-make-perl's rules.MakeMaker.noxs as a template for debian/rules

Modified:
    trunk/libmarc-xml-perl/debian/changelog
    trunk/libmarc-xml-perl/debian/control
    trunk/libmarc-xml-perl/debian/rules

Modified: trunk/libmarc-xml-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmarc-xml-perl/debian/changelog?rev=11798&op=diff
==============================================================================
--- trunk/libmarc-xml-perl/debian/changelog (original)
+++ trunk/libmarc-xml-perl/debian/changelog Fri Dec 28 14:14:35 2007
@@ -13,6 +13,9 @@
   [ Damyan Ivanov ]
   * Add v? to watchfile pattern. Drop "debian uupdate" from watch line as we
     use svn-upgrade instead
+  * Migrate from cdbs to plain debhelper
+    + drop cdbs and patchutils from build-depends
+    + use dh-make-perl's rules.MakeMaker.noxs as a template for debian/rules
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 17 Dec 2007 18:35:47 +0100
 

Modified: trunk/libmarc-xml-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libmarc-xml-perl/debian/control?rev=11798&op=diff
==============================================================================
--- trunk/libmarc-xml-perl/debian/control (original)
+++ trunk/libmarc-xml-perl/debian/control Fri Dec 28 14:14:35 2007
@@ -1,8 +1,7 @@
 Source: libmarc-xml-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 5.0.0), cdbs (>= 0.4.27-1), quilt, 
- patchutils (>= 0.2.25)
+Build-Depends: debhelper (>= 5.0.0), quilt
 Build-Depends-Indep: perl (>= 5.8.8-7), libxml-sax-perl (>= 0.12), 
  libmarc-charset-perl (>= 0.98), libmarc-record-perl (>= 2)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>

Modified: trunk/libmarc-xml-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmarc-xml-perl/debian/rules?rev=11798&op=diff
==============================================================================
--- trunk/libmarc-xml-perl/debian/rules (original)
+++ trunk/libmarc-xml-perl/debian/rules Fri Dec 28 14:14:35 2007
@@ -1,13 +1,80 @@
 #!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
+# 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.
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-include /usr/share/cdbs/1/class/perlmodule.mk
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-install/libmarc-xml-perl::
-	rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/libmarc-xml-perl/usr/lib/perl5
+# 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
 
-.PHONY: show-builddepends
-show-builddepends:
-	@echo "Build-Depends: $(CDBS_BUILD_DEPENDS)"
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	
+	# As this is a architecture independent package, we are not
+	# supposed to install stuff to /usr/lib. MakeMaker creates
+	# the dirs, we prevent this by setting the INSTALLVENDORARCH
+	# and VENDORARCHEXP environment variables.
+	
+	# Add commands to compile the package here
+	$(PERL) Makefile.PL INSTALLDIRS=vendor \
+		INSTALLVENDORARCH=/usr/share/perl5/ \
+		VENDORARCHEXP=/usr/share/perl5/
+	$(MAKE)
+	$(MAKE) test
+	
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	
+	dh_clean build-stamp install-stamp
+	
+	# Add commands to clean up after the build process here
+	[ ! -f Makefile ] || $(MAKE) realclean
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	
+	# Add commands to install the package into debian/$PACKAGE_NAME here
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	
+	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_installchangelogs Changes
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	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




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