1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
From 3a311eb6353e33a575a6b54a0340cdc5eda6c599 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Wed, 15 Jan 2014 16:19:50 +0000
Subject: Install perlfilter manual page in section 1, not 3
Forwarded: no
Last-Update: 2022-08-18
Patch-Name: perlfilter-man-section.patch
---
Makefile.PL | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Makefile.PL b/Makefile.PL
index 752392a..8958918 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -125,6 +125,20 @@ release : test dist
";
}
+{
+ package MY;
+
+ # Fun hack by cjwatson to get perlfilter.pod manified in section 1 with
+ # all the other perl*.pod pages.
+ sub constants {
+ my ($self) = @_;
+ $self->{MAN1PODS}->{'perlfilter.pod'} =
+ $self->catfile("\$(INST_MAN1DIR)", "perlfilter.\$(MAN1EXT)");
+ delete $self->{MAN3PODS}->{'perlfilter.pod'};
+ $self->SUPER::constants();
+ }
+}
+
sub oldWarnings
{
local ($^I) = "" ;
|