r20148 - in /trunk/libdbd-sqlite2-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Mon May 19 15:43:55 UTC 2008
Author: gregoa
Date: Mon May 19 15:43:55 2008
New Revision: 20148
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=20148
Log:
Exchange debian/rules against a version created from a current
dh-make-perl template; this moves SQLite2.pm in a place where it is
found; thanks to Peter J. Holzer for reporting the bug (closes: #481923).
Modified:
trunk/libdbd-sqlite2-perl/debian/changelog
trunk/libdbd-sqlite2-perl/debian/rules
Modified: trunk/libdbd-sqlite2-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite2-perl/debian/changelog?rev=20148&op=diff
==============================================================================
--- trunk/libdbd-sqlite2-perl/debian/changelog (original)
+++ trunk/libdbd-sqlite2-perl/debian/changelog Mon May 19 15:43:55 2008
@@ -8,6 +8,11 @@
[ Damyan Ivanov ]
* remove Marcelo E. Magallon <mmagallo at debian.org> from Uploaders.
Requested by MIA team
+
+ [ gregor herrmann ]
+ * Exchange debian/rules against a version created from a current
+ dh-make-perl template; this moves SQLite2.pm in a place where it is
+ found; thanks to Peter J. Holzer for reporting the bug (closes: #481923).
-- gregor herrmann <gregor+debian at comodo.priv.at> Tue, 09 Oct 2007 22:28:50 +0200
Modified: trunk/libdbd-sqlite2-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite2-perl/debian/rules?rev=20148&op=diff
==============================================================================
--- trunk/libdbd-sqlite2-perl/debian/rules (original)
+++ trunk/libdbd-sqlite2-perl/debian/rules Mon May 19 15:43:55 2008
@@ -1,71 +1,77 @@
#!/usr/bin/make -f
-## ----------------------------------------------------------------------
-## debian/rules : package script for libdbd-sqlite2-perl
-## ----------------------------------------------------------------------
+# 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
+
+# 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/dpatch/dpatch.make
-## ----------------------------------------------------------------------
-## uncomment this to turn on verbose mode
-#export DH_VERBOSE=1
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
-## ----------------------------------------------------------------------
-b := $(shell pwd)/debian/libdbd-sqlite2-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
-## ----------------------------------------------------------------------
-## targets
+build: build-stamp
+build-stamp: $(DPATCH_STAMPFN)
+ dh_testdir
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ $(MAKE) test
+ touch $@
-clean: clean-patched unpatch
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean build-stamp install-stamp
+ [ ! -d output ] || rm -rv output
+ [ ! -f Makefile ] || $(MAKE) realclean
-clean-patched:
- dh_testdir
- dh_testroot
- [ ! -f Makefile ] || $(MAKE) realclean
- dh_clean
- -rm -rf output
- -rm -rf junk
- rm -f build-stamp install-stamp
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/share/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/share/perl5
+ [ ! -f $(TMP)/usr/lib/perl5/DBD/getsqlite.pl ] || rm $(TMP)/usr/lib/perl5/DBD/getsqlite.pl
+ touch $@
-build: patch build-stamp
-build-stamp:
- dh_testdir
- perl Makefile.PL INSTALLDIRS=vendor
- mkdir -p junk/
- $(MAKE)
- $(MAKE) test
- touch build-stamp
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do here for an architecture-dependent package
-install: install-stamp
-install-stamp: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- $(MAKE) install PREFIX=$(b)/usr
- -rm $(b)/usr/lib/perl5/DBD/getsqlite.pl
- mv $(b)/usr/lib/perl5/DBD/ $(b)/usr/share/perl5/
- touch install-stamp
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installchangelogs Changes
+ dh_shlibdeps
+ dh_strip
+ dh_perl
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
-binary-indep:
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installchangelogs Changes
- dh_installdebconf
- dh_strip
- 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
-
-## ----------------------------------------------------------------------
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list