r16301 - in /trunk/libchart-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sun Mar 2 15:28:01 UTC 2008
Author: gregoa-guest
Date: Sun Mar 2 15:28:00 2008
New Revision: 16301
URL: http://svn.debian.org/wsvn/?sc=1&rev=16301
Log:
debian/rules
- update with the help of dh-make-perl's templates
- remove samples/ conditionally
- symlink upstream README as upstream changelog
- recreate Makefile in clean target if it exists as it contains ugly paths
Modified:
trunk/libchart-perl/debian/changelog
trunk/libchart-perl/debian/rules
Modified: trunk/libchart-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libchart-perl/debian/changelog?rev=16301&op=diff
==============================================================================
--- trunk/libchart-perl/debian/changelog (original)
+++ trunk/libchart-perl/debian/changelog Sun Mar 2 15:28:00 2008
@@ -8,8 +8,13 @@
rules).
* Set Standards-Version to 3.7.3 (no changes).
* debian/watch: use dist-based URL.
+ * debian/rules
+ - update with the help of dh-make-perl's templates
+ - remove samples/ conditionally
+ - symlink upstream README as upstream changelog
+ - recreate Makefile in clean target if it exists as it contains ugly paths
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sun, 02 Mar 2008 16:03:46 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sun, 02 Mar 2008 16:27:19 +0100
libchart-perl (2.4.1-4) unstable; urgency=low
Modified: trunk/libchart-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libchart-perl/debian/rules?rev=16301&op=diff
==============================================================================
--- trunk/libchart-perl/debian/rules (original)
+++ trunk/libchart-perl/debian/rules Sun Mar 2 15:28:00 2008
@@ -1,56 +1,72 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libchart-perl
+#!/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.
-PERL ?= /usr/bin/perl
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-package := $(firstword $(shell dh_listpackages))
-prefix := $(CURDIR)/debian/$(package)/usr
+# 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
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+PACKAGE=$(shell dh_listpackages)
-build: build-stamp
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
build-stamp:
dh_testdir
- $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
- $(MAKE) LD_RUN_PATH=
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
$(MAKE) test
+
touch $@
-clean: checkroot
- rm -f build-stamp
- -$(MAKE) distclean
- -rm samples/*.png
- dh_clean
+clean:
+ dh_testdir
+ dh_testroot
-binary-indep: checkroot build
- dh_clean
- dh_installdirs
+ dh_clean build-stamp install-stamp
+ [ ! -d $(CURDIR)/samples ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/samples
+ [ ! -f Makefile ] || ( $(PERL) Makefile.PL && $(MAKE) distclean )
- $(MAKE) pure_install PREFIX=$(prefix)
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
- #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:
- [ ! -d $(prefix)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/lib/perl5
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
- dh_installdocs README TODO rgb.txt Documentation.pdf
- dh_installchangelogs
+ touch $@
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installexamples
+ dh_installdocs TODO rgb.txt Documentation.pdf
+ dh_installchangelogs -k README
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary-arch: checkroot build
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-binary: binary-indep binary-arch
-
-checkroot:
- dh_testdir
- dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
More information about the Pkg-perl-cvs-commits
mailing list