r16977 - in /trunk/libmath-numbercruncher-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sat Mar 8 22:13:32 UTC 2008
Author: gregoa-guest
Date: Sat Mar 8 22:13:31 2008
New Revision: 16977
URL: http://svn.debian.org/wsvn/?sc=1&rev=16977
Log:
debian/rules: update based on dh-make-perl's templates.
Modified:
trunk/libmath-numbercruncher-perl/debian/changelog
trunk/libmath-numbercruncher-perl/debian/rules
Modified: trunk/libmath-numbercruncher-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmath-numbercruncher-perl/debian/changelog?rev=16977&op=diff
==============================================================================
--- trunk/libmath-numbercruncher-perl/debian/changelog (original)
+++ trunk/libmath-numbercruncher-perl/debian/changelog Sat Mar 8 22:13:31 2008
@@ -9,11 +9,12 @@
Vcs-Svn fields.
* debian/watch: remove dash from the version capture.
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467808).
+ * debian/rules: update based on dh-make-perl's templates.
* debian/watch: use dist-based URL.
* Set Standards-Version to 3.7.3 (no changes).
* debian/copyright: add generic upstream URL and update year of copyright.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 23:09:19 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 23:10:52 +0100
libmath-numbercruncher-perl (5.00-7) unstable; urgency=low
Modified: trunk/libmath-numbercruncher-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmath-numbercruncher-perl/debian/rules?rev=16977&op=diff
==============================================================================
--- trunk/libmath-numbercruncher-perl/debian/rules (original)
+++ trunk/libmath-numbercruncher-perl/debian/rules Sat Mar 8 22:13:31 2008
@@ -1,56 +1,61 @@
-#! /usr/bin/make -f
-# -*- makefile -*-
-# debian/rules file for the Debian Linux libmath-numbercruncher-perl package
-# Copyright (C) 2001 by Dirk Eddelbuettel <edd at debian.org>
+#!/usr/bin/make -f
+# 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.
-package := $(shell grep Package debian/control | sed 's/^Package: //')
-version := $(shell head -1 debian/changelog | \
- perl -nle 'm/\S+\s+\((\S+)\)/ && print $$1')
-debtmp := $(CURDIR)/debian/$(package)
-
+# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-upstream: get-orig-source
-get-orig-source:
- lynx http://www.cpan.org/authors/id/S/SI/SIFUKURT/
+# 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)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
- perl Makefile.PL INSTALLDIRS=vendor
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
- touch build-stamp
+ $(MAKE) test
-test: test-stamp
-test-stamp: build-stamp
- -$(MAKE) test
- # this works after installtion: perl test.pl
- touch test-stamp
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp test-stamp install-stamp
- -test -f Makefile && $(MAKE) realclean
- dh_clean
+
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
install: install-stamp
-install-stamp:
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
- $(MAKE) install PREFIX=$(debtmp)/usr
- [ ! -d $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/lib/perl5
- touch install-stamp
-binary-indep: build test install
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -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: build install
dh_testdir
dh_testroot
- dh_perl
dh_installdocs
- dh_installexamples
- dh_installchangelogs Changes
+ dh_installchangelogs Changes
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
@@ -58,11 +63,8 @@
dh_md5sums
dh_builddeb
-binary-arch: build test install
-
-source diff:
+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