r21092 - in /trunk/libio-interface-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jun 14 20:38:26 UTC 2008


Author: gregoa
Date: Sat Jun 14 20:38:26 2008
New Revision: 21092

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21092
Log:
Refresh debian/rules, no functional changes.

Modified:
    trunk/libio-interface-perl/debian/changelog
    trunk/libio-interface-perl/debian/rules

Modified: trunk/libio-interface-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libio-interface-perl/debian/changelog?rev=21092&op=diff
==============================================================================
--- trunk/libio-interface-perl/debian/changelog (original)
+++ trunk/libio-interface-perl/debian/changelog Sat Jun 14 20:38:26 2008
@@ -3,6 +3,7 @@
   * New upstream release.
   * Set Standards-Version to 3.8.0 (no changes).
   * Add /me to Uploaders.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregoa at debian.org>  Sat, 14 Jun 2008 22:32:21 +0200
 

Modified: trunk/libio-interface-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libio-interface-perl/debian/rules?rev=21092&op=diff
==============================================================================
--- trunk/libio-interface-perl/debian/rules (original)
+++ trunk/libio-interface-perl/debian/rules Sat Jun 14 20:38:26 2008
@@ -1,8 +1,8 @@
 #!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
+# 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
@@ -11,32 +11,31 @@
 # always return the default without waiting for user input.
 export PERL_MM_USE_DEFAULT=1
 
-PACKAGE=$(shell dh_listpackages)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-ifndef PERL
-PERL = /usr/bin/perl
+# 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
-
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP := $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
 	$(MAKE) test
-
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp install-stamp
-	dh_clean
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
@@ -44,31 +43,31 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/share/perl5
 	touch $@
 
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do here for an architecture-dependent package
+
 # Build architecture-dependent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs 
+	dh_installdocs
 	dh_installchangelogs Changes
+	dh_shlibdeps
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir=$(DESTDIR)
+	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