r12180 - in /trunk/libio-zlib-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Mon Jan 7 22:20:59 UTC 2008
Author: gregoa-guest
Date: Mon Jan 7 22:20:59 2008
New Revision: 12180
URL: http://svn.debian.org/wsvn/?sc=1&rev=12180
Log:
debian/rules:
- use dh_listpackages instead of pwd/sed to get package name
- create build-stamp and install-stamp targets and adjust dependencies
- move dh_clen before make clean
- move building and testing to build-stamp target
- remove OPTIMIZE, we don't compile anything
- separate PREFIX and DESTDIR in make install
- remove /usr/lib/perl5 only if it exists
- remove unneeded dh_* calls
Modified:
trunk/libio-zlib-perl/debian/changelog
trunk/libio-zlib-perl/debian/rules
Modified: trunk/libio-zlib-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libio-zlib-perl/debian/changelog?rev=12180&op=diff
==============================================================================
--- trunk/libio-zlib-perl/debian/changelog (original)
+++ trunk/libio-zlib-perl/debian/changelog Mon Jan 7 22:20:59 2008
@@ -4,8 +4,17 @@
* Set debhelper compatibility level to 5 (in debian/compat, debian/control
was already correct).
* debian/copyright: add actual copyright notice, change to new format.
+ * debian/rules:
+ - use dh_listpackages instead of pwd/sed to get package name
+ - create build-stamp and install-stamp targets and adjust dependencies
+ - move dh_clen before make clean
+ - move building and testing to build-stamp target
+ - remove OPTIMIZE, we don't compile anything
+ - separate PREFIX and DESTDIR in make install
+ - remove /usr/lib/perl5 only if it exists
+ - remove unneeded dh_* calls
- -- gregor herrmann <gregor+debian at comodo.priv.at> Mon, 07 Jan 2008 23:04:08 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Mon, 07 Jan 2008 23:16:18 +0100
libio-zlib-perl (1.08-1) unstable; urgency=low
Modified: trunk/libio-zlib-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libio-zlib-perl/debian/rules?rev=12180&op=diff
==============================================================================
--- trunk/libio-zlib-perl/debian/rules (original)
+++ trunk/libio-zlib-perl/debian/rules Mon Jan 7 22:20:59 2008
@@ -8,39 +8,41 @@
# This is the debhelper compatibility version to use.
# export DH_COMPAT=4
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
include /usr/share/quilt/quilt.make
-build: patch
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
dh_testdir
perl Makefile.PL verbose INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
+ touch $@
clean: unpatch
dh_testdir
dh_testroot
+ dh_clean Makefile.old build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) clean
- [ ! -f Makefile ] || $(MAKE) clean
- dh_clean Makefile.old
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
-
- $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
- -find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+ $(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) PREFIX=/usr install
+ [ ! -d $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
+
+ touch $@
binary-arch:;
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
- dh_installman
dh_installchangelogs ChangeLog
- dh_link
- dh_strip
dh_compress
dh_fixperms
dh_installdeb
More information about the Pkg-perl-cvs-commits
mailing list