r22864 - in /trunk/libnet-scp-expect-perl/debian: changelog docs rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Jul 6 12:53:23 UTC 2008


Author: gregoa
Date: Sun Jul  6 12:53:23 2008
New Revision: 22864

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22864
Log:
* Remove debian/docs and don't install README any more (text version of the
  inline POD documentation).
* Refresh debian/rules, no functional changes.

Removed:
    trunk/libnet-scp-expect-perl/debian/docs
Modified:
    trunk/libnet-scp-expect-perl/debian/changelog
    trunk/libnet-scp-expect-perl/debian/rules

Modified: trunk/libnet-scp-expect-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-scp-expect-perl/debian/changelog?rev=22864&op=diff
==============================================================================
--- trunk/libnet-scp-expect-perl/debian/changelog (original)
+++ trunk/libnet-scp-expect-perl/debian/changelog Sun Jul  6 12:53:23 2008
@@ -15,6 +15,9 @@
   * Set Standards-Version to 3.8.0 (no changes).
   * Remove version from build dependency on libexpect-perl (even oldstable has
     a newer version).
+  * Remove debian/docs and don't install README any more (text version of the
+    inline POD documentation).
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Dec 2007 18:55:10 +0100
 

Modified: trunk/libnet-scp-expect-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-scp-expect-perl/debian/rules?rev=22864&op=diff
==============================================================================
--- trunk/libnet-scp-expect-perl/debian/rules (original)
+++ trunk/libnet-scp-expect-perl/debian/rules Sun Jul  6 12:53:23 2008
@@ -1,53 +1,60 @@
 #!/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
+#export DH_VERBOSE=1
 
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
+# 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=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+build: build-stamp
+build-stamp:
+	dh_testdir
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+	touch $@
 
-build:
-	dh_testdir
-	# Add here commands to compile the package.
-	perl Makefile.PL verbose INSTALLDIRS=vendor
 clean:
 	dh_testdir
 	dh_testroot
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	-$(MAKE) clean
-	rm -f Makefile.old
-	dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-	$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
-	[ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-binary-arch:;
 binary-indep: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs
-	dh_installman
 	dh_installchangelogs CHANGES
-	dh_link
-	dh_strip
+	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