r15518 - in /trunk/liblockfile-simple-perl/debian: changelog rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Sun Feb 24 21:17:13 UTC 2008
Author: dmn
Date: Sun Feb 24 21:17:12 2008
New Revision: 15518
URL: http://svn.debian.org/wsvn/?sc=1&rev=15518
Log:
* debian/rules: replaced with (adapted) rules.MakeMaker.noxs from
dh-make-perl
Modified:
trunk/liblockfile-simple-perl/debian/changelog
trunk/liblockfile-simple-perl/debian/rules
Modified: trunk/liblockfile-simple-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/liblockfile-simple-perl/debian/changelog?rev=15518&op=diff
==============================================================================
--- trunk/liblockfile-simple-perl/debian/changelog (original)
+++ trunk/liblockfile-simple-perl/debian/changelog Sun Feb 24 21:17:12 2008
@@ -12,6 +12,8 @@
* debian/copyright: convert to machine-readable format
+ upstream license is Artistic-only
+ update years of copyright
+ * debian/rules: replaced with (adapted) rules.MakeMaker.noxs from
+ dh-make-perl
-- Damyan Ivanov <dmn at debian.org> Sun, 24 Feb 2008 22:49:01 +0200
Modified: trunk/liblockfile-simple-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/liblockfile-simple-perl/debian/rules?rev=15518&op=diff
==============================================================================
--- trunk/liblockfile-simple-perl/debian/rules (original)
+++ trunk/liblockfile-simple-perl/debian/rules Sun Feb 24 21:17:12 2008
@@ -1,53 +1,76 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
+# 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=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(shell dh_listpackages)
+ifndef PERL
+PERL = /usr/bin/perl
+endif
-build:
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
dh_testdir
- # Add here commands to compile the package.
- perl Makefile.PL verbose INSTALLDIRS=vendor
+
+ # Add commands to compile the package here
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
+
+ touch $@
+
clean:
dh_testdir
dh_testroot
- -$(MAKE) clean
- rm -f Makefile.old
- dh_clean
+ dh_clean build-stamp install-stamp
-install:
+ # Add commands to clean up after the build process here
+ [ ! -f Makefile ] || $(MAKE) realclean
+
+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
- [ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
+ # Add commands to install the package into $(TMP) here
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-binary-arch:;
-binary-indep: build install
+ [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+
+ touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: install
dh_testdir
dh_testroot
- dh_installdocs
- dh_installman
+ dh_installexamples
+ dh_installdocs README
dh_installchangelogs ChangeLog
- dh_link
- dh_strip
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
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 install configure
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list