r42959 - in /trunk/libparse-recdescent-perl/debian: changelog control libparse-recdescent-perl.examples rules

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Wed Aug 26 23:14:18 UTC 2009


Author: jawnsy-guest
Date: Wed Aug 26 23:14:12 2009
New Revision: 42959

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=42959
Log:
* Switch to new short debhelper rules format
* Add files in demo/* so they are installed

Added:
    trunk/libparse-recdescent-perl/debian/libparse-recdescent-perl.examples
Modified:
    trunk/libparse-recdescent-perl/debian/changelog
    trunk/libparse-recdescent-perl/debian/control
    trunk/libparse-recdescent-perl/debian/rules

Modified: trunk/libparse-recdescent-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-recdescent-perl/debian/changelog?rev=42959&op=diff
==============================================================================
--- trunk/libparse-recdescent-perl/debian/changelog (original)
+++ trunk/libparse-recdescent-perl/debian/changelog Wed Aug 26 23:14:12 2009
@@ -7,8 +7,9 @@
   * Change Vcs field to our repository/viewer
   * Change watch to a dist-based rather than author-based one
   * Standards-Version 3.8.3 (no changes)
-  * Prepare to shift to new debhelper rules format
+  * Switch to new short debhelper rules format
   * Depend on either perl-modules >= 5.10 OR libversion-perl
+  * Add files in demo/* so they are installed
 
  -- Jonathan Yu <frequency at cpan.org>  Wed, 26 Aug 2009 12:14:38 -0400
 

Modified: trunk/libparse-recdescent-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-recdescent-perl/debian/control?rev=42959&op=diff
==============================================================================
--- trunk/libparse-recdescent-perl/debian/control (original)
+++ trunk/libparse-recdescent-perl/debian/control Wed Aug 26 23:14:12 2009
@@ -1,8 +1,9 @@
 Source: libparse-recdescent-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.0.8), quilt (>= 0.46-7)
-Build-Depends-Indep: perl-modules (>= 5.10) | libversion-perl, libtest-pod-perl
+Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7)
+Build-Depends-Indep: perl, perl-modules (>= 5.10) | libversion-perl,
+ libtest-pod-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jonathan Yu <frequency at cpan.org>
 Standards-Version: 3.8.3

Added: trunk/libparse-recdescent-perl/debian/libparse-recdescent-perl.examples
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-recdescent-perl/debian/libparse-recdescent-perl.examples?rev=42959&op=file
==============================================================================
--- trunk/libparse-recdescent-perl/debian/libparse-recdescent-perl.examples (added)
+++ trunk/libparse-recdescent-perl/debian/libparse-recdescent-perl.examples Wed Aug 26 23:14:12 2009
@@ -1,0 +1,1 @@
+demo/*

Modified: trunk/libparse-recdescent-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-recdescent-perl/debian/rules?rev=42959&op=diff
==============================================================================
--- trunk/libparse-recdescent-perl/debian/rules (original)
+++ trunk/libparse-recdescent-perl/debian/rules Wed Aug 26 23:14:12 2009
@@ -1,83 +1,17 @@
 #!/usr/bin/make -f
-#-*- Makefile -*-
-# File: rules
-# Description: debian/yrules file for Debian package libparse-recdescent-perl
-# Author: Rafael Laboissière <rafael at debian.org>
-# Created on: Mon Jul 12 23:01:43 CEST 1999
-# Last modified on: Sun Feb 15 17:47:41 CET 2009
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+EXAMPLES= $(TMP)/usr/share/doc/libparse-recdescent-perl/examples
+PERL   ?= /usr/bin/perl
 
-include /usr/share/quilt/quilt.make
+%:
+	dh --with quilt $@
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+override_dh_installexamples:
+	dh_installexamples
+	sed -i 's:^#!\s*/usr/local/bin/perl:#! $(PERL):' $(EXAMPLES)/*
 
-package = libparse-recdescent-perl
-debtmp  = $(shell pwd)/debian/$(package)
-debusr  = $(debtmp)/usr
-deblib  = $(debusr)/lib
-debdoc  = $(debusr)/share/doc/$(package)
-debexa  = $(debdoc)/examples
-demofiles = demo/demo_*.pl
-archlib = `$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
-config  = INSTALLDIRS=perl INSTALLMAN1DIR=$(debtmp)/usr/man/man1 \
-          INSTALLMAN3DIR=$(debtmp)/usr/share/man/man3 \
-          INSTALLPRIVLIB=$(debtmp)/usr/share/perl5 \
-          INSTALLARCHLIB=$(debtmp)$(archlib)
-
-Makefile: Makefile.PL
-	$(PERL) Makefile.PL $(config)
-
-build: patch build-stamp
-build-stamp: Makefile
-	dh_testdir
-
-	$(MAKE)
-	$(MAKE) test
-
-	touch build-stamp
-
-clean: Makefile unpatch
-	dh_testdir
-	dh_testroot
-	$(MAKE) clean
-	dh_clean
-
-install: install-stamp
-install-stamp: build-stamp Makefile
-	dh_testdir
-	dh_testroot
-	dh_prep
-
-	$(MAKE) pure_install
-
-	rm -rf $(deblib)
-	find $(debusr) -name \*.pod -o -name \*.pl | xargs rm -f
-	find $(debusr) -name \*.pm | xargs chmod -x
-
-	touch install-stamp
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installexamples $(demofiles)
-	$(PERL) -pi -e 's:^#!\s*/usr/local/bin/perl:#! $(PERL):' $(debexa)/*
-	chmod -x $(debexa)/*
-	dh_installchangelogs Changes
-	dh_compress --exclude=.pl
+override_dh_fixperms:
 	dh_fixperms
-#	dh_perl
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-source diff:
-	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-binary: binary-indep
-.PHONY: build clean binary-indep binary
+	chmod -x $(EXAMPLES)/*




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