r11375 - in /trunk/libmime-lite-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Tue Dec 18 16:54:55 UTC 2007
Author: gregoa-guest
Date: Tue Dec 18 16:54:55 2007
New Revision: 11375
URL: http://svn.debian.org/wsvn/?sc=1&rev=11375
Log:
debian/rules:
- remove unused veriable 'version'
- use 'tmp' instead of 'prefix' to be able to use DESTDIR and PREFIX on
make install
- move dh_clean before make distclean
- move 'export PERL_MM_USE_DEFAULT' to top of file
Modified:
trunk/libmime-lite-perl/debian/changelog
trunk/libmime-lite-perl/debian/rules
Modified: trunk/libmime-lite-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmime-lite-perl/debian/changelog?rev=11375&op=diff
==============================================================================
--- trunk/libmime-lite-perl/debian/changelog (original)
+++ trunk/libmime-lite-perl/debian/changelog Tue Dec 18 16:54:55 2007
@@ -12,6 +12,12 @@
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/watch: use dist-based URL.
+ * debian/rules:
+ - remove unused veriable 'version'
+ - use 'tmp' instead of 'prefix' to be able to use DESTDIR and PREFIX on
+ make install
+ - move dh_clean before make distclean
+ - move 'export PERL_MM_USE_DEFAULT' to top of file
-- Gunnar Wolf <gwolf at debian.org> Thu, 13 Dec 2007 17:00:22 -0600
Modified: trunk/libmime-lite-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmime-lite-perl/debian/rules?rev=11375&op=diff
==============================================================================
--- trunk/libmime-lite-perl/debian/rules (original)
+++ trunk/libmime-lite-perl/debian/rules Tue Dec 18 16:54:55 2007
@@ -5,15 +5,14 @@
PERL ?= /usr/bin/perl
package := $(firstword $(shell dh_listpackages))
-prefix := $(CURDIR)/debian/$(package)/usr
+tmp := $(CURDIR)/debian/$(package)
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+export PERL_MM_USE_DEFAULT=true;
build: build-stamp
build-stamp:
dh_testdir
- export PERL_MM_USE_DEFAULT=true; $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
+ $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
$(MAKE)
$(MAKE) test
touch $@
@@ -21,23 +20,23 @@
clean: checkroot
rm -f build-stamp
dh_clean debian/changes
+ dh_clean testout/*
[ ! -e Makefile ] || $(MAKE) distclean
- dh_clean testout/*
binary-indep: checkroot build
dh_clean
- $(MAKE) install PREFIX=$(prefix)
+ $(MAKE) install PREFIX=/usr DESTDIR=$(tmp)
# As this is a architecture independent package, we are not
# supposed to install stuff to /usr/lib. MakeMaker creates
# the dirs, we delete them from the deb:
- rmdir --ignore-fail-on-non-empty --parents $(prefix)/lib/perl5
+ rmdir --ignore-fail-on-non-empty --parents $(tmp)/usr/lib/perl5
# changes.pod is a changelog, not a man page - Run it through pod2text
# to install it as a changelog and remove it from where it got
# installed.
- rm -f $(prefix)/share/perl5/MIME/changes.pod $(prefix)/share/man/man3/MIME::changes.3pm
+ rm -f $(tmp)/usr/share/perl5/MIME/changes.pod $(tmp)/usr/share/man/man3/MIME::changes.3pm
pod2text changes.pod > debian/changes
dh_installdocs README
More information about the Pkg-perl-cvs-commits
mailing list