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
39
40
41
42
43
44
45
46
47
48
49
|
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'RT',
'VERSION_FROM' => 'RT.pm', # finds $VERSION
'PREREQ_PM' => {
'DBI' => 1.16,
'DBIx::SearchBuilder' => '0.48',
'Date::Parse' => 0,
'Date::Format' => 0,
'MIME::Entity' => 5.108,
'Mail::Mailer' => '1.20',
'Log::Dispatch' => 1.6,
'HTML::Entities' => 0,
'Text::Wrapper' => 0,
'Text::Template' => 0,
'Getopt::Long' => 2.24,
},
);
{
package MY;
sub top_targets {
my($self) = @_;
my $out = "POD2TEST_EXE = pod2test\n";
$out .= $self->SUPER::top_targets(@_);
# $out =~ s/^(pure_all\b.*)/$1 testifypods/m;
$out .= "\n\ntestifypods : \n";
my @pods = (keys %{$self->{MAN1PODS}},
keys %{$self->{MAN3PODS}});
foreach my $pod (@pods) {
(my $test = $pod) =~ s/\.(pm|pod)$//;
$test =~ s/^lib\W//;
$test =~ s/\W/-/;
$test =~ s/\//__/g;
$test = "autogen-$test.t";
$out .= "\t$self->{NOECHO}\$(POD2TEST_EXE) ".
"$pod t/$test \n";
}
return $out;
}
}
|