r21789 - in /trunk/libyaml-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Tue Jun 17 13:57:56 UTC 2008


Author: gregoa
Date: Tue Jun 17 13:57:56 2008
New Revision: 21789

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21789
Log:
Refresh debian/rules, no functional changes; don't install README any more
(text version of the POD documentation). Install COMPATIBILITY instead.

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

Modified: trunk/libyaml-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-perl/debian/changelog?rev=21789&op=diff
==============================================================================
--- trunk/libyaml-perl/debian/changelog (original)
+++ trunk/libyaml-perl/debian/changelog Tue Jun 17 13:57:56 2008
@@ -1,4 +1,4 @@
-libyaml-perl (0.62-2) UNRELEASED; urgency=low
+libyaml-perl (0.66-1) UNRELEASED; urgency=low
 
   * Take over for the Debian Perl Group with maintainer's permission
     (http://lists.debian.org/debian-perl/2008/06/msg00039.html)
@@ -16,6 +16,8 @@
   * Add /me to Uploaders.
   * Set Standards-Version to 3.8.0 (no changes).
   * Set debhelper compatibility level to 5.
+  * Refresh debian/rules, no functional changes; don't install README any more
+    (text version of the POD documentation). Install COMPATIBILITY instead.
 
  -- gregor herrmann <gregoa at debian.org>  Sun, 15 Jun 2008 18:18:23 +0200
 

Modified: trunk/libyaml-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-perl/debian/rules?rev=21789&op=diff
==============================================================================
--- trunk/libyaml-perl/debian/rules (original)
+++ trunk/libyaml-perl/debian/rules Tue Jun 17 13:57:56 2008
@@ -1,62 +1,60 @@
 #!/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.
 
-PACKAGE=$(shell dh_listpackages)
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+# 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
 
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP     =`pwd`/debian/$(PACKAGE)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	PERL_MM_USE_DEFAULT=1 INSTALL_PROGRAMS='ysh:xyx:yaml2outline' \
-	  $(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
-	touch build-stamp
+	$(MAKE) test
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-	-$(MAKE) realclean
-	dh_clean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-install: 
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	#Enable if Test::Base is ACCEPTED
-	#$(MAKE) test
-	$(MAKE) install PREFIX=$(TMP)/usr
-	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-# Build architecture-dependent 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-independent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
-	dh_installexamples
+	dh_installdocs COMPATIBILITY
 	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir="$(DESTDIR)"
-
-source diff:                                                                  
-	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+	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