r13395 - in /trunk/libplot-perl/debian: changelog rules watch
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Jan 24 09:40:54 UTC 2008
Author: dmn
Date: Thu Jan 24 09:40:54 2008
New Revision: 13395
URL: http://svn.debian.org/wsvn/?sc=1&rev=13395
Log:
* debian/rules: overhaul
+ drop tag target
+ bring in sync with current dh-make-perl/rules.MakeMaker.xs template
+ do not ship redundant README
* debian/watch: use dist-based URL
Modified:
trunk/libplot-perl/debian/changelog
trunk/libplot-perl/debian/rules
trunk/libplot-perl/debian/watch
Modified: trunk/libplot-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libplot-perl/debian/changelog?rev=13395&op=diff
==============================================================================
--- trunk/libplot-perl/debian/changelog (original)
+++ trunk/libplot-perl/debian/changelog Thu Jan 24 09:40:54 2008
@@ -8,6 +8,13 @@
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/rules: delete /usr/share/perl5 only if it exists.
+
+ [ Damyan Ivanov ]
+ * debian/rules: overhaul
+ + drop tag target
+ + bring in sync with current dh-make-perl/rules.MakeMaker.xs template
+ + do not ship redundant README
+ * debian/watch: use dist-based URL
-- gregor herrmann <gregor+debian at comodo.priv.at> Tue, 09 Oct 2007 22:31:40 +0200
Modified: trunk/libplot-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libplot-perl/debian/rules?rev=13395&op=diff
==============================================================================
--- trunk/libplot-perl/debian/rules (original)
+++ trunk/libplot-perl/debian/rules Thu Jan 24 09:40:54 2008
@@ -4,42 +4,52 @@
PERL ?= /usr/bin/perl
-package := $(firstword $(shell dh_listpackages))
-prefix := $(CURDIR)/debian/$(package)/usr
+PACKAGE := $(firstword $(shell dh_listpackages))
+TMP := $(CURDIR)/debian/$(PACKAGE)
-version := $(shell dpkg-parsechangelog | \
- sed -ne 's/^Version: *\([0-9]\+:\)*//p')
-
-tag:
- cvs tag -c -F $(subst .,_,debian_version_$(version))
-ifeq ($(findstring -,$(version)),)
- cvs tag -c -F $(subst .,_,upstream_version_$(version))
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
build: build-stamp
build-stamp:
dh_testdir
$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
- $(MAKE) LD_RUN_PATH=
+ $(MAKE) LD_RUN_PATH= OPTIMIZE="$(CFLAGS)"
touch $@
-clean: checkroot
+clean:
+ dh_testdir
rm -f build-stamp
+ dh_clean build-stamp install-stamp
[ ! -f Makefile ] || $(MAKE) distclean
- dh_clean
-binary-indep: checkroot build
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ $(MAKE) pure_install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
+
+ touch $@
-binary-arch: checkroot build
- dh_clean
- dh_installdirs
+binary-indep:
- $(MAKE) pure_install PREFIX=$(prefix)
- [ ! -d $(prefix)/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/share/perl5
- dh_installdocs README
+binary-arch: install
+ dh_testdir
+ dh_testroot
+
+ dh_installdocs
dh_installexamples examples/*
dh_installchangelogs Changes
-
+
dh_strip
dh_compress
dh_fixperms
@@ -52,8 +62,4 @@
binary: binary-indep binary-arch
-checkroot:
- dh_testdir
- dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build
+.PHONY: binary binary-arch binary-indep clean build
Modified: trunk/libplot-perl/debian/watch
URL: http://svn.debian.org/wsvn/trunk/libplot-perl/debian/watch?rev=13395&op=diff
==============================================================================
--- trunk/libplot-perl/debian/watch (original)
+++ trunk/libplot-perl/debian/watch Thu Jan 24 09:40:54 2008
@@ -1,3 +1,2 @@
version=3
-http://www.cpan.org/authors/id/J/JL/JLAPEYRE/Graphics-Libplot-(.*)\.tar\.gz \
- debian
+http://search.cpan.org/dist/Graphics-Libplot/ .+/Graphics-Libplot-v?(\d[\d.]*)\.tar\.gz
More information about the Pkg-perl-cvs-commits
mailing list