r19569 - in /trunk/libterm-readkey-perl/debian: changelog rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Tue May 6 18:57:49 UTC 2008


Author: dmn
Date: Tue May  6 18:57:48 2008
New Revision: 19569

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19569
Log:
refresh debian/rules using current dh-make-perl template

Modified:
    trunk/libterm-readkey-perl/debian/changelog
    trunk/libterm-readkey-perl/debian/rules

Modified: trunk/libterm-readkey-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libterm-readkey-perl/debian/changelog?rev=19569&op=diff
==============================================================================
--- trunk/libterm-readkey-perl/debian/changelog (original)
+++ trunk/libterm-readkey-perl/debian/changelog Tue May  6 18:57:48 2008
@@ -17,6 +17,7 @@
   * debian/watch: use dist-based URL.
     + also drop uupdate
   * add myself to Uploaders
+  * refresh debian/rules using current dh-make-perl template
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:32:19 +0200
 

Modified: trunk/libterm-readkey-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libterm-readkey-perl/debian/rules?rev=19569&op=diff
==============================================================================
--- trunk/libterm-readkey-perl/debian/rules (original)
+++ trunk/libterm-readkey-perl/debian/rules Tue May  6 18:57:48 2008
@@ -1,91 +1,82 @@
 #!/usr/bin/make -f
-#-*- makefile -*-
+# 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
 
-PACKAGE=libterm-readkey-perl
+# 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 PERL
-PERL = /usr/bin/perl
-endif
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+DOC     = $(TMP)/usr/share/doc/$(PACKAGE)
 
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP     =$(CURDIR)/debian/$(PACKAGE)
-DOCDIR   = $(TMP)/usr/share/doc/$(PACKAGE)
-
-OPTIMIZE = -O2 -Wall
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-OPTIMIZE += -g
+# Allow disabling build optimisation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
 endif
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-
-	# Add here commands to compile the package.
+	# Add commands to compile the package here
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
-#	$(MAKE) all LDLOADLIBS=-lc LD_RUN_PATH="" CFLAG=$(CFLAGS)
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
 	$(MAKE) test
-
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-
-	# Add here commands to clean up after the build process.
+	dh_clean build-stamp install-stamp
+	# Add commands to clean up after the build process here
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-	dh_clean
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-
-	# Add here commands to install the package into debian/tmp.
-	$(MAKE) install PREFIX=$(TMP)/usr
-
-	find debian/tmp \( -name '*.pm' -o -name '*.pl' \) -print0 | \
+	# Add commands to install the package into $(TMP) here
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/share/perl5
+	find $(TMP) \( -name '*.pm' -o -name '*.pl' \) -print0 | \
 	  xargs --null --no-run-if-empty \
 	  perl -i -pe '$$_ = "#!/usr/bin/perl$$1\n" if m|^#!.*/perl(.*)$$|;'
 
-	install -d $(DOCDIR)
-	perl -ne 'print if /\Q*****\E/ ... /\Q*****\E/' ReadKey.xs > $(DOCDIR)/changelog
+	install -d $(DOC)
+	perl -ne 'print if /\Q*****\E/ ... /\Q*****\E/' ReadKey.xs > $(DOC)/changelog
 	
-	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+	touch $@
 
+binary-indep:
+# We have nothing to do here for an architecture-independent package
 
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
 binary-arch: build install
-#	dh_testversion
 	dh_testdir
 	dh_testroot
 	dh_installdocs README
-	dh_installman
-	dh_installchangelogs 
+	dh_installchangelogs
+	dh_shlibdeps
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	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