r19082 - in /trunk/libimager-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Wed Apr 23 16:11:16 UTC 2008
Author: gregoa
Date: Wed Apr 23 16:11:15 2008
New Revision: 19082
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19082
Log:
Refresh debian/rules, no functional changes.
Modified:
trunk/libimager-perl/debian/changelog
trunk/libimager-perl/debian/rules
Modified: trunk/libimager-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libimager-perl/debian/changelog?rev=19082&op=diff
==============================================================================
--- trunk/libimager-perl/debian/changelog (original)
+++ trunk/libimager-perl/debian/changelog Wed Apr 23 16:11:15 2008
@@ -1,8 +1,9 @@
libimager-perl (0.64-1) UNRELEASED; urgency=low
* New upstream release.
+ * Refresh debian/rules, no functional changes.
- -- gregor herrmann <gregoa at debian.org> Wed, 23 Apr 2008 17:56:49 +0200
+ -- gregor herrmann <gregoa at debian.org> Wed, 23 Apr 2008 18:05:40 +0200
libimager-perl (0.63-1) unstable; urgency=low
Modified: trunk/libimager-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libimager-perl/debian/rules?rev=19082&op=diff
==============================================================================
--- trunk/libimager-perl/debian/rules (original)
+++ trunk/libimager-perl/debian/rules Wed Apr 23 16:11:15 2008
@@ -1,38 +1,35 @@
#!/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
+#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
-PACKAGE=$(shell dh_listpackages)
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(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.
$(PERL) Makefile.PL INSTALLDIRS=vendor --disable=TT-fonts,ungif
- $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
$(MAKE) test
-
touch $@
clean:
@@ -41,39 +38,36 @@
rm -f imconfig.h
rm -f ICO/testout/*
dh_clean build-stamp install-stamp
- # Add here commands to clean up after the build process.
[ ! -f Makefile ] || $(MAKE) realclean
-
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
- # Add here commands to install the package into debian/tmp.
$(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 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_installexamples samples/*
dh_installdocs README
- dh_installexamples samples/*
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
More information about the Pkg-perl-cvs-commits
mailing list