r19236 - in /trunk/libtest-manifest-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Mon Apr 28 16:40:34 UTC 2008


Author: gregoa
Date: Mon Apr 28 16:40:33 2008
New Revision: 19236

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19236
Log:
* debian/rules:

  - touch Makefile in clean target after unpatching
    Makefile.PL to prevent it from being re-built; allows building twice
    in a row
  - bring in line with current practice in general

Modified:
    trunk/libtest-manifest-perl/debian/changelog
    trunk/libtest-manifest-perl/debian/rules

Modified: trunk/libtest-manifest-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-manifest-perl/debian/changelog?rev=19236&op=diff
==============================================================================
--- trunk/libtest-manifest-perl/debian/changelog (original)
+++ trunk/libtest-manifest-perl/debian/changelog Mon Apr 28 16:40:33 2008
@@ -1,3 +1,14 @@
+libtest-manifest-perl (1.22-2) UNRELEASED; urgency=low
+
+  * debian/rules:
+  
+    - touch Makefile in clean target after unpatching
+      Makefile.PL to prevent it from being re-built; allows building twice
+      in a row
+    - bring in line with current practice in general
+
+ -- gregor herrmann <gregoa at debian.org>  Mon, 28 Apr 2008 18:37:54 +0200
+
 libtest-manifest-perl (1.22-1) unstable; urgency=low
 
   [ gregor herrmann ]

Modified: trunk/libtest-manifest-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-manifest-perl/debian/rules?rev=19236&op=diff
==============================================================================
--- trunk/libtest-manifest-perl/debian/rules (original)
+++ trunk/libtest-manifest-perl/debian/rules Mon Apr 28 16:40:33 2008
@@ -1,62 +1,62 @@
 #!/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=$(shell dh_listpackages)
-TMP=debian/$(PACKAGE)
+# 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
-
-include /usr/share/quilt/quilt.make
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+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
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-	
 	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
-	
 	dh_clean build-stamp install-stamp
-	
-	[ ! -f Makefile ] || $(MAKE) dist
+	[ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
 
 install: install-stamp
 install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	
-	$(MAKE) install DESTDIR=$(TMP)
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/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_installdocs
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
 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