[libclass-prototyped-perl] 01/06: Replace debian/patches/example-interpreter with an override

gregor herrmann gregoa at debian.org
Mon Jun 1 18:31:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libclass-prototyped-perl.

commit 1d7194984393a1af7043bb3bfed3d64b367dde5e
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Jun 1 20:26:06 2015 +0200

    Replace debian/patches/example-interpreter with an override
    
    in debian/rules.
---
 debian/patches/example-interpreter | 12 ------------
 debian/patches/series              |  1 -
 debian/rules                       | 16 ++++++++++------
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/debian/patches/example-interpreter b/debian/patches/example-interpreter
deleted file mode 100644
index c59e595..0000000
--- a/debian/patches/example-interpreter
+++ /dev/null
@@ -1,12 +0,0 @@
-Author: Russ Allbery <rra at debian.org>
-Description: Add a #! line to the graphtest.pl example so that it's
- executable when installed.
-
---- a/examples/graphtest.pl
-+++ b/examples/graphtest.pl
-@@ -1,3 +1,5 @@
-+#!/usr/bin/perl
-+
- use Class::Prototyped qw(:EZACCESS);
- use Class::Prototyped::Graph;
- 
diff --git a/debian/patches/series b/debian/patches/series
index 06d5c2a..354426c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
 pod-spelling
 pod-long-line
-example-interpreter
diff --git a/debian/rules b/debian/rules
index 4297001..c8832f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,16 @@
 #!/usr/bin/make -f
 
-PACKAGE := $(shell dh_listpackages)
-TMPDIR  := debian/$(PACKAGE)
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+%:
+	dh $@
 
 override_dh_auto_install:
 	dh_auto_install
-	rm $(TMPDIR)/usr/share/perl5/Class/Prototyped/why.pod
-	rm $(TMPDIR)/usr/share/man/man3/Class::Prototyped::why.3pm
+	rm $(TMP)/usr/share/perl5/Class/Prototyped/why.pod
+	rm $(TMP)/usr/share/man/man3/Class::Prototyped::why.3pm
 
-%:
-	dh $@
+override_dh_installexamples:
+	dh_installexamples
+	sed -i '1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/graphtest.pl

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclass-prototyped-perl.git



More information about the Pkg-perl-cvs-commits mailing list