r16742 - in /trunk/libconvert-binhex-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Fri Mar 7 18:33:27 UTC 2008


Author: gregoa-guest
Date: Fri Mar  7 18:33:18 2008
New Revision: 16742

URL: http://svn.debian.org/wsvn/?sc=1&rev=16742
Log:
debian/rules:
  - update with the help of dh-make-perl's templates
  - don't compress examples

Modified:
    trunk/libconvert-binhex-perl/debian/changelog
    trunk/libconvert-binhex-perl/debian/rules

Modified: trunk/libconvert-binhex-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libconvert-binhex-perl/debian/changelog?rev=16742&op=diff
==============================================================================
--- trunk/libconvert-binhex-perl/debian/changelog (original)
+++ trunk/libconvert-binhex-perl/debian/changelog Fri Mar  7 18:33:18 2008
@@ -8,8 +8,11 @@
   * debian/watch: use dist-based URL.
   * debian/copyright: add specific download location; copy
     authors/copyright/license information verbatim from the module itself.
+  * debian/rules:
+    - update with the help of dh-make-perl's templates
+    - don't compress examples
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Fri, 07 Mar 2008 19:09:24 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Fri, 07 Mar 2008 19:32:14 +0100
 
 libconvert-binhex-perl (1.119+pristine-2) unstable; urgency=low
 

Modified: trunk/libconvert-binhex-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libconvert-binhex-perl/debian/rules?rev=16742&op=diff
==============================================================================
--- trunk/libconvert-binhex-perl/debian/rules (original)
+++ trunk/libconvert-binhex-perl/debian/rules Fri Mar  7 18:33:18 2008
@@ -1,63 +1,71 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# 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
 
-PERL ?= /usr/bin/perl
+# 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
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	touch configure-stamp
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: configure-stamp 
+build-stamp:
 	dh_testdir
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
-	[ ! -f Makefile ] || $(MAKE) distclean
-	dh_clean
 
-install: build
+	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/libconvert-binhex-perl
-	[ ! -d $(CURDIR)/debian/libconvert-binhex-perl/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libconvert-binhex-perl/usr/lib/perl5
+	dh_clean -k
 
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
+	touch $@
 
-# Build architecture-independent files here.
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installchangelogs 
+	dh_installexamples bin/*.pl
 	dh_installdocs
-	dh_installexamples bin/*.pl
-#	dh_install
-#	dh_installman
-	dh_link
-	dh_compress
+	dh_installchangelogs
+	dh_perl
+	dh_compress -Xexamples
 	dh_fixperms
-	dh_perl
 	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 install configure
+.PHONY: build clean binary-indep binary-arch binary install




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