r16545 - in /trunk/libtk-gbarr-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Wed Mar 5 19:18:59 UTC 2008
Author: gregoa-guest
Date: Wed Mar 5 19:18:58 2008
New Revision: 16545
URL: http://svn.debian.org/wsvn/?sc=1&rev=16545
Log:
debian/rules: update with dh-make-perl's help; install examples/* to
/usr/share/doc/libtk-gbarr-perl/examples instead of
/usr/share/perl5/Tk/demos.
Modified:
trunk/libtk-gbarr-perl/debian/changelog
trunk/libtk-gbarr-perl/debian/rules
Modified: trunk/libtk-gbarr-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtk-gbarr-perl/debian/changelog?rev=16545&op=diff
==============================================================================
--- trunk/libtk-gbarr-perl/debian/changelog (original)
+++ trunk/libtk-gbarr-perl/debian/changelog Wed Mar 5 19:18:58 2008
@@ -4,11 +4,14 @@
field (source stanza); Homepage field (source stanza). Removed: XS-
Vcs-Svn fields.
* debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467925).
+ * debian/rules: update with dh-make-perl's help; install examples/* to
+ /usr/share/doc/libtk-gbarr-perl/examples instead of
+ /usr/share/perl5/Tk/demos.
* debian/watch: use dist-based URL.
* Set Standards-Version to 3.7.3 (no changes).
* debian/copyright: use author-agnostic download URL.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 05 Mar 2008 20:01:30 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Wed, 05 Mar 2008 20:12:19 +0100
libtk-gbarr-perl (2.07-2) unstable; urgency=low
Modified: trunk/libtk-gbarr-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libtk-gbarr-perl/debian/rules?rev=16545&op=diff
==============================================================================
--- trunk/libtk-gbarr-perl/debian/rules (original)
+++ trunk/libtk-gbarr-perl/debian/rules Wed Mar 5 19:18:58 2008
@@ -1,48 +1,70 @@
#!/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
-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)
+# 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
-build:
+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 verbose INSTALLDIRS=vendor
+
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ #$(MAKE) test
+
+ touch $@
clean:
dh_testdir
dh_testroot
- [ ! -f Makefile ] || $(MAKE) clean
- rm -f Makefile.old
- # make sure all demo programs are not executable
- chmod 0644 examples/*
- dh_clean
-install:
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
+
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
- $(MAKE) PREFIX=$(debtmp)/usr install
- mv $(debtmp)/usr/lib/perl5/Tk $(debtmp)/usr/share/perl5/Tk
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
- #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 $(debtmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(debtmp)/usr/lib/perl5
+ # wrong directory
+ mv $(TMP)/usr/lib/perl5/Tk $(TMP)/usr/share/perl5/Tk
+ # make sure all demo programs are not executable ...
+ chmod 0644 examples/*
+ # ... and remove /usr/share/perl5/Tk/demos, we install them to examples/
+ [ ! -d $(TMP)/usr/share/perl5/Tk/demos ] || rm -rf $(TMP)/usr/share/perl5/Tk/demos
+
+ [ ! -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 README TODO
- dh_installexamples
- dh_installchangelogs Changes
+ dh_installexamples examples/*
+ dh_installdocs README TODO
+ dh_installchangelogs Changes
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
@@ -50,7 +72,8 @@
dh_md5sums
dh_builddeb
-binary-arch: build install
+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
More information about the Pkg-perl-cvs-commits
mailing list