r15817 - in /trunk/libemail-valid-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Feb 27 19:44:39 UTC 2008


Author: gregoa-guest
Date: Wed Feb 27 19:44:38 2008
New Revision: 15817

URL: http://svn.debian.org/wsvn/?sc=1&rev=15817
Log:
debian/rules: update with the help of dh-make-perl's templates; don't
  install README any more (no useful information for users).

Modified:
    trunk/libemail-valid-perl/debian/changelog
    trunk/libemail-valid-perl/debian/rules

Modified: trunk/libemail-valid-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libemail-valid-perl/debian/changelog?rev=15817&op=diff
==============================================================================
--- trunk/libemail-valid-perl/debian/changelog (original)
+++ trunk/libemail-valid-perl/debian/changelog Wed Feb 27 19:44:38 2008
@@ -7,8 +7,10 @@
   * debian/watch: use dist-based URL.
   * Set Standards-Version to 3.7.3 (no changes).
   * Set debhelper compatibility level to 6.
+  * debian/rules: update with the help of dh-make-perl's templates; don't
+    install README any more (no useful information for users).
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 27 Feb 2008 20:39:03 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 27 Feb 2008 20:41:45 +0100
 
 libemail-valid-perl (0.179-1) unstable; urgency=low
 

Modified: trunk/libemail-valid-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libemail-valid-perl/debian/rules?rev=15817&op=diff
==============================================================================
--- trunk/libemail-valid-perl/debian/rules (original)
+++ trunk/libemail-valid-perl/debian/rules Wed Feb 27 19:44:38 2008
@@ -1,69 +1,76 @@
 #!/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.
-# Rewritten from that template by Ron <ron at debian.org>
+# 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=libemail-valid-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
+
+PACKAGE=$(shell dh_listpackages)
 
 ifndef PERL
 PERL = /usr/bin/perl
 endif
 
-TMP     =`pwd`/debian/$(package)
-config  =INSTALLDIRS=vendor
-
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	$(PERL) Makefile.PL $(config)
+
+	# Add commands to compile the package here
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
-	touch build-stamp
+	$(MAKE) test
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp install-stamp
-	-$(MAKE) realclean
-	dh_clean
+
+	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
-	$(MAKE) test
-	$(MAKE) install PREFIX=$(TMP)/usr
-        
-	#As this is a architecture independent package, we are not supposed to install
-	#stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
+
+	# 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 install-stamp
+	touch $@
 
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-binary-arch: build install
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
 	dh_installexamples t/valid.t
-	dh_installman
+	dh_installdocs
 	dh_installchangelogs Changes
+	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
-




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