r16643 - in /trunk/libtext-autoformat-perl/debian: changelog libtext-autoformat-perl.docs libtext-autoformat-perl.examples libtext-autoformat-perl.install rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Thu Mar 6 17:14:09 UTC 2008


Author: gregoa-guest
Date: Thu Mar  6 17:14:08 2008
New Revision: 16643

URL: http://svn.debian.org/wsvn/?sc=1&rev=16643
Log:
* debian/rules: update with dh-make-perl's help.
* Drop debian/libtext-autoformat-perl.*: don't install README anymore;
  handle examples from debian/rules.

Removed:
    trunk/libtext-autoformat-perl/debian/libtext-autoformat-perl.docs
    trunk/libtext-autoformat-perl/debian/libtext-autoformat-perl.examples
    trunk/libtext-autoformat-perl/debian/libtext-autoformat-perl.install
Modified:
    trunk/libtext-autoformat-perl/debian/changelog
    trunk/libtext-autoformat-perl/debian/rules

Modified: trunk/libtext-autoformat-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtext-autoformat-perl/debian/changelog?rev=16643&op=diff
==============================================================================
--- trunk/libtext-autoformat-perl/debian/changelog (original)
+++ trunk/libtext-autoformat-perl/debian/changelog Thu Mar  6 17:14:08 2008
@@ -11,8 +11,11 @@
     copyright, license wording, and references to license file on Debian
     systems.
   * Set Standards-Version to 3.7.3 (no changes).
+  * debian/rules: update with dh-make-perl's help.
+  * Drop debian/libtext-autoformat-perl.*: don't install README anymore;
+    handle examples from debian/rules.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Thu, 06 Mar 2008 18:08:58 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Thu, 06 Mar 2008 18:11:36 +0100
 
 libtext-autoformat-perl (1.13-2) unstable; urgency=low
 

Modified: trunk/libtext-autoformat-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtext-autoformat-perl/debian/rules?rev=16643&op=diff
==============================================================================
--- trunk/libtext-autoformat-perl/debian/rules (original)
+++ trunk/libtext-autoformat-perl/debian/rules Thu Mar  6 17:14:08 2008
@@ -1,65 +1,71 @@
 #!/usr/bin/make -f
-## ----------------------------------------------------------------------
-## debian/rules : package script for libtext-autoformat-perl
-## ----------------------------------------------------------------------
+# 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
+# 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
+
 TMP     =$(CURDIR)/debian/$(PACKAGE)
 
-## ----------------------------------------------------------------------
-## targets
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+
+	touch $@
 
 clean:
-		dh_testdir
-		dh_testroot
-		[ ! -f Makefile ] || $(MAKE) realclean
-		dh_clean
-		rm -f build-stamp install-stamp
+	dh_testdir
+	dh_testroot
 
-build:		build-stamp
-build-stamp:
-		dh_testdir
-		perl Makefile.PL INSTALLDIRS=vendor
-		$(MAKE) OPTIMIZE="-O2 -g -Wall"
-		$(MAKE) test
-		touch build-stamp
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-install:	install-stamp
-install-stamp:	build
-		dh_testdir
-		dh_testroot
-		dh_clean -k
-		dh_installdirs
-		$(MAKE) install DESTDIR=$(TMP) PREFIX=/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:
-		[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
-		touch install-stamp
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
 
-binary-indep:	build install
-		dh_testdir
-		dh_testroot
-		dh_installdocs
-		dh_installexamples
-		dh_installchangelogs Changes
-		dh_compress
-		dh_fixperms
-		chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
-		dh_installdeb
-		dh_perl
-		dh_gencontrol
-		dh_md5sums
-		dh_builddeb
+	$(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:		binary-indep binary-arch
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installexamples config.emacs config.vim
+	dh_installdocs
+	dh_installchangelogs Changes
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
 
-.PHONY:		clean build install binary-indep binary-arch binary
+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