r16885 - in /trunk/libfortune-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Mar 8 13:19:28 UTC 2008


Author: gregoa-guest
Date: Sat Mar  8 13:19:28 2008
New Revision: 16885

URL: http://svn.debian.org/wsvn/?sc=1&rev=16885
Log:
debian/rules:
  - update based on dh-make-perl's templates
  - recreate Makefile if it creates; the clean target fails with the
    Makefile shipped by upstream

Modified:
    trunk/libfortune-perl/debian/changelog
    trunk/libfortune-perl/debian/rules

Modified: trunk/libfortune-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libfortune-perl/debian/changelog?rev=16885&op=diff
==============================================================================
--- trunk/libfortune-perl/debian/changelog (original)
+++ trunk/libfortune-perl/debian/changelog Sat Mar  8 13:19:28 2008
@@ -6,11 +6,15 @@
     Vcs-Svn fields.
   * debian/watch: use dist-based URL.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #468031).
+  * debian/rules:
+    - update based on dh-make-perl's templates
+    - recreate Makefile if it creates; the clean target fails with the
+      Makefile shipped by upstream
   * Set Standards-Version to 3.7.3 (no changes).
   * debian/copyright: use specific download URL instead of pointing to CPAN
     at large.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 08 Mar 2008 14:07:03 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 08 Mar 2008 14:15:35 +0100
 
 libfortune-perl (0.2-7) unstable; urgency=low
 

Modified: trunk/libfortune-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libfortune-perl/debian/rules?rev=16885&op=diff
==============================================================================
--- trunk/libfortune-perl/debian/rules (original)
+++ trunk/libfortune-perl/debian/rules Sat Mar  8 13:19:28 2008
@@ -1,57 +1,70 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libfortune-perl
+#!/usr/bin/make -f
+# 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
+
+# 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
 
-package	:= $(shell sed -ne 's/^Package: *//p' debian/control)
-prefix	:= $(CURDIR)/debian/$(package)/usr
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
-# thanks to: Gergely Nagy.
-Makefile: Makefile.PL
-	${PERL} Makefile.PL INSTALLDIRS=vendor PERL=${PERL}
-build: Makefile
+build: build-stamp
+build-stamp:
 	dh_testdir
-	${MAKE} LD_RUN_PATH=
 
-clean:	checkroot
-	rm -f build-stamp
-	-$(MAKE) distclean
-	dh_clean
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
 
-binary-indep:	checkroot build
-	dh_clean
-	dh_installdirs
+	touch $@
 
-	$(MAKE) install PREFIX=$(prefix)
+clean:
+	dh_testdir
+	dh_testroot
 
-	# 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:
-	[ ! -d $(prefix)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/lib/perl5
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || ( $(PERL) Makefile.PL && $(MAKE) realclean )
 
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	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
+
+	touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
 	dh_installdocs README
-	dh_installexamples 
-	dh_installchangelogs 
-	dh_strip
+	dh_installchangelogs
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
-	dh_shlibdeps
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary-arch:	checkroot build
-# We have nothing to do by default.
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
-binary:	binary-indep binary-arch
-
-checkroot:
-	dh_testdir
-	dh_testroot
-
-.PHONY:	binary binary-arch binary-indep clean checkroot build Makefile
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install




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