r19283 - in /trunk/libvideo-capture-v4l-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Wed Apr 30 20:34:56 UTC 2008
Author: gregoa
Date: Wed Apr 30 20:34:55 2008
New Revision: 19283
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19283
Log:
Refresh debian/rules in general.
Modified:
trunk/libvideo-capture-v4l-perl/debian/changelog
trunk/libvideo-capture-v4l-perl/debian/rules
Modified: trunk/libvideo-capture-v4l-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvideo-capture-v4l-perl/debian/changelog?rev=19283&op=diff
==============================================================================
--- trunk/libvideo-capture-v4l-perl/debian/changelog (original)
+++ trunk/libvideo-capture-v4l-perl/debian/changelog Wed Apr 30 20:34:55 2008
@@ -3,8 +3,9 @@
* debian/rules: touch Makefile in clean target after unpatching
Makefile.PL to prevent it from being re-built; allows building twice
in a row.
+ * Refresh debian/rules in general.
- -- gregor herrmann <gregoa at debian.org> Mon, 28 Apr 2008 18:33:12 +0200
+ -- gregor herrmann <gregoa at debian.org> Wed, 30 Apr 2008 22:28:39 +0200
libvideo-capture-v4l-perl (0.901-3) unstable; urgency=low
Modified: trunk/libvideo-capture-v4l-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libvideo-capture-v4l-perl/debian/rules?rev=19283&op=diff
==============================================================================
--- trunk/libvideo-capture-v4l-perl/debian/rules (original)
+++ trunk/libvideo-capture-v4l-perl/debian/rules Wed Apr 30 20:34:55 2008
@@ -13,15 +13,11 @@
# 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)
-
-# Allow disabling build optimation by setting noopt in
+# Allow disabling build optimisation by setting noopt in
# $DEB_BUILD_OPTIONS
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -33,64 +29,48 @@
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
-
- # Add commands to compile the package here
$(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
-
- touch build-stamp
+ $(MAKE) test
+ touch $@
clean: unpatch
dh_testdir
dh_testroot
-
- # Add commands to clean up after the build process here
- if [ -e Makefile ]; then touch Makefile; $(MAKE) realclean; fi
-
dh_clean build-stamp install-stamp RTjpeg/codec/RTjpeg.c
+ [ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
install: install-stamp
-install-stamp:
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
- # Add here commands to install the package into debian/tmp.
- #$(MAKE) test
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
- # As this is a architecture dependent package, we are not supposed to install
- # stuff to /usr/share/perl5. MakeMaker creates the dirs, we delete them from
- # the deb:
- [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
-
- touch install-stamp
+ [ ! -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 examples/*
dh_installdocs TODO RTjpeg/codec/README
- dh_installexamples examples/*
- find debian/libvideo-capture-v4l-perl -name SCCS -print0 -prune | \
- xargs -0r rm -rf
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
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
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