r23108 - in /trunk/libdbd-sqlite3-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Jul 13 12:51:11 UTC 2008


Author: gregoa
Date: Sun Jul 13 12:51:11 2008
New Revision: 23108

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

Modified:
    trunk/libdbd-sqlite3-perl/debian/changelog
    trunk/libdbd-sqlite3-perl/debian/rules

Modified: trunk/libdbd-sqlite3-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite3-perl/debian/changelog?rev=23108&op=diff
==============================================================================
--- trunk/libdbd-sqlite3-perl/debian/changelog (original)
+++ trunk/libdbd-sqlite3-perl/debian/changelog Sun Jul 13 12:51:11 2008
@@ -12,6 +12,7 @@
   * Set Standards-Version to 3.8.0; add debian/README.source to document
     quilt usage.
   * debian/control: change my email address.
+  * Refresh debian/rules, no functional changes.
 
  -- Damyan Ivanov <dmn at debian.org>  Fri, 21 Mar 2008 17:45:03 +0200
 

Modified: trunk/libdbd-sqlite3-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite3-perl/debian/rules?rev=23108&op=diff
==============================================================================
--- trunk/libdbd-sqlite3-perl/debian/rules (original)
+++ trunk/libdbd-sqlite3-perl/debian/rules Sun Jul 13 12:51:11 2008
@@ -1,56 +1,77 @@
 #!/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.
 
-# uncomment this to turn on verbose mode
+# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+# 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
 
 include /usr/share/quilt/quilt.make
 
-PACKAGE=$(shell dh_listpackages)
-b := $(CURDIR)/debian/$(PACKAGE)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+# 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: $(QUILT_STAMPFN)
+	dh_testdir
+	$(PERL) Makefile.PL INSTALLDIRS=vendor USE_LOCAL_SQLITE=0
+	mkdir -p junk/
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+	$(MAKE) test
+	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
 	dh_clean build-stamp install-stamp
+	$(RM) -rv output junk
 	[ ! -f Makefile ] || $(MAKE) realclean
-	-rm -rf output junk
-
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-	dh_testdir
-	perl Makefile.PL INSTALLDIRS=vendor USE_LOCAL_SQLITE=0
-	mkdir -p junk/
-	$(MAKE)
-	$(MAKE) test
-	touch $@
 
 install: install-stamp
-install-stamp:	build-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	$(MAKE) install DESTDIR=$(b) PREFIX=/usr
-	[ ! -d $(b)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(b)/usr/share/perl5
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/share/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/share/perl5
 	touch $@
 
-binary-indep:
+# 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-arch: build install
 	dh_testdir
 	dh_testroot
 	dh_installdocs README
 	dh_installchangelogs Changes
-	dh_installdebconf
+	dh_shlibdeps
 	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_shlibdeps
-	dh_perl
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
 binary: binary-indep binary-arch
-
-.PHONY:	clean build install binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install




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