r23014 - in /trunk/libdevice-cdio-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Thu Jul 10 19:59:53 UTC 2008


Author: gregoa
Date: Thu Jul 10 19:59:53 2008
New Revision: 23014

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

Modified:
    trunk/libdevice-cdio-perl/debian/changelog
    trunk/libdevice-cdio-perl/debian/rules

Modified: trunk/libdevice-cdio-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdevice-cdio-perl/debian/changelog?rev=23014&op=diff
==============================================================================
--- trunk/libdevice-cdio-perl/debian/changelog (original)
+++ trunk/libdevice-cdio-perl/debian/changelog Thu Jul 10 19:59:53 2008
@@ -16,6 +16,8 @@
     - wrap long line
   * Set Standards-Version to 3.8.0; add debian/README.source to document quilt
     usage.
+  * Refresh debian/rules, no functional changes; except: don't install almost
+    empty README any more.
 
  -- Martín Ferrari <tincho at debian.org>  Fri, 13 Jun 2008 00:04:48 +0000
 

Modified: trunk/libdevice-cdio-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdevice-cdio-perl/debian/rules?rev=23014&op=diff
==============================================================================
--- trunk/libdevice-cdio-perl/debian/rules (original)
+++ trunk/libdevice-cdio-perl/debian/rules Thu Jul 10 19:59:53 2008
@@ -7,21 +7,17 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-include /usr/share/quilt/quilt.make
-
 # 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)
+include /usr/share/quilt/quilt.make
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-# Allow disabling build optimation by setting noopt in
+# Allow disabling build optimisation by setting noopt in
 # $DEB_BUILD_OPTIONS
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -32,65 +28,51 @@
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	$(PERL) Build.PL installdirs=vendor config=optimize="$(CFLAGS)"
+	OPTIMIZE="$(CFLAGS)" $(PERL) Build
+	$(PERL) Build test
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp install-stamp
 	# remove files that will be regenerated by SWIG (and fail because of
 	# permissions in the original tarball)
-	rm -f $(CURDIR)/perlcdio_wrap.c $(CURDIR)/perliso9660_wrap.c \
+	$(RM) $(CURDIR)/perlcdio_wrap.c $(CURDIR)/perliso9660_wrap.c \
 		$(CURDIR)/perlmmc_wrap.c $(CURDIR)/lib/perlmmc.pm \
 		$(CURDIR)/lib/perlcdio.pm $(CURDIR)/lib/perliso9660.pm
-	dh_testdir
-
-	# Add commands to compile the package here
-	$(PERL) Build.PL installdirs=vendor extra_compiler_flags="$(CFLAGS)" create_packlist=0
-	$(PERL) Build
-
-	touch build-stamp
-
-clean: clean-patched unpatch
-clean-patched:
-	dh_testdir
-	dh_testroot
-
-	dh_clean build-stamp install-stamp
-	# Add commands to clean up after the build process here
-	[ ! -f Build ] || $(PERL) Build distclean
+	[ ! -f Build ] || ( touch Build && $(PERL) Build --allow_mb_mismatch 1 distclean )
 
 install: install-stamp
 install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-
-	# Add commands to install the package into debian/PACKAGE_NAME here
-	$(PERL) Build test
-	$(PERL) Build install destdir=$(TMP)
-	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --parents --ignore-fail-on-non-empty $(TMP)/usr/share/perl5
-	
-	touch install-stamp
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
+	touch $@
 
 # Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-dependent package
 
 # Build architecture-dependent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
+	dh_installdocs
 	dh_installexamples examples/*
 	dh_installchangelogs Changes
+	dh_shlibdeps
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_makeshlibs
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-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
+.PHONY: build clean binary-indep binary-arch binary install




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