r18934 - in /trunk/libcalendar-simple-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Apr 20 18:01:28 UTC 2008


Author: gregoa
Date: Sun Apr 20 18:01:26 2008
New Revision: 18934

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18934
Log:
Refresh debian/rules, no functional changes; don't install almost empty
README anymore.

Modified:
    trunk/libcalendar-simple-perl/debian/changelog
    trunk/libcalendar-simple-perl/debian/rules

Modified: trunk/libcalendar-simple-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcalendar-simple-perl/debian/changelog?rev=18934&op=diff
==============================================================================
--- trunk/libcalendar-simple-perl/debian/changelog (original)
+++ trunk/libcalendar-simple-perl/debian/changelog Sun Apr 20 18:01:26 2008
@@ -2,8 +2,10 @@
 
   * New upstream release.
   * debian/copyright: adjust copyright notice.
+  * Refresh debian/rules, no functional changes; don't install almost empty
+    README anymore.
 
- -- gregor herrmann <gregoa at debian.org>  Sun, 20 Apr 2008 19:56:00 +0200
+ -- gregor herrmann <gregoa at debian.org>  Sun, 20 Apr 2008 19:58:50 +0200
 
 libcalendar-simple-perl (1.19-1) unstable; urgency=low
 

Modified: trunk/libcalendar-simple-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcalendar-simple-perl/debian/rules?rev=18934&op=diff
==============================================================================
--- trunk/libcalendar-simple-perl/debian/rules (original)
+++ trunk/libcalendar-simple-perl/debian/rules Sun Apr 20 18:01:26 2008
@@ -1,76 +1,64 @@
 #!/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.
+#
+# It was later modified by Jason Kohles <email at jasonkohles.com>
+# http://www.jasonkohles.com/ to support Module::Build installed modules
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PACKAGE=$(shell dh_listpackages)
+# 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
-
-DESTDIR=..
-
-TMP     =`pwd`/debian/$(PACKAGE)
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-
-	$(PERL) Build.PL installdirs=vendor
-
-	touch configure-stamp
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: configure-stamp
+build-stamp:
 	dh_testdir
-
-	./Build
-	./Build test
-
-	touch build-stamp
+	$(PERL) Build.PL installdirs=vendor
+	$(PERL) Build
+	$(PERL) Build test
+	touch $@
 
 clean:
 	dh_testdir
-	dh_testroot 
+	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
 
-	[ ! -e ./Build ] || ./Build distclean
-
-	dh_clean  build-stamp configure-stamp
-
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-
-	./Build install destdir=$(TMP)
-
-	find $(TMP) -type f -name .packlist | xargs rm -f
-	[ ! -d $(TMP)/usr/lib/perl5/auto/Calendar/Simple ] || \
-		rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5/auto/Calendar/Simple/
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
 	# pcal is installed into the examples directory instead
 	# so get rid of the generated /usr/bin
 	rm -rf $(TMP)/usr/bin
+	touch $@
 
-# Build architecture-independent files here.
-binary-arch: build install
-# We have nothing to do by default.
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-# Build architecture-dependent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
+	dh_installdocs
 	dh_installexamples bin/pcal
-	dh_installdocs README
-	dh_installman
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir=$(DESTDIR)
+	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
-
+.PHONY: build clean binary-indep binary-arch binary install




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