This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Test-Simple to Alpha 078
[perl5.git] / cpan / Pod-Perldoc / Makefile.PL
1 use 5.006;
2 use strict;
3 use warnings;
4
5 use ExtUtils::MakeMaker;
6
7 my $EUMM_VERSION = $ExtUtils::MakeMaker::VERSION;
8
9 WriteMakefile(
10     'NAME'           => 'Pod::Perldoc',
11     'VERSION_FROM'   => 'lib/Pod/Perldoc.pm',
12
13     'AUTHOR'         => 'Mark Allen <mallen@cpan.org>', # maintainer
14     'ABSTRACT_FROM'  => 'lib/Pod/Perldoc.pm',
15
16     'PREREQ_PM' => {
17             # Are there any hard dependencies not covered here?
18             'Config'                    => '0',
19             'Encode'                    => '0',
20             'Fcntl'                     => '0',
21             'File::Spec::Functions'     => '0',
22             'File::Temp'                => '0.22',
23             'IO::Select'                => '0',
24             'parent'                    => '0',
25             'Pod::Man'                  => '2.18',
26             'Pod::Simple::RTF'          => '3.16',
27             'Pod::Simple::XMLOutStream' => '3.16',
28             'Pod::Text'                 => '0',
29             'strict'                    => '0',
30             'Symbol'                    => '0',
31             'Test::More'                => '0',
32             'Text::ParseWords'          => '0',
33             'warnings'                  => '0',
34            },
35
36     ($ENV{PERL_CORE} ? () : ('EXE_FILES' => [qw( perldoc )])),
37
38         'META_MERGE' => {
39                 no_index => {
40                         directory => 'corpus',
41                         },
42         resources => {
43             repository => 'https://github.com/mrallen1/Pod-Perldoc.git',
44             },
45                 },
46
47     'MAN1PODS' => { 'perldoc.pod' => 'blib/man1/perldoc.1' },
48
49     ($^V >= 5.008001 && $^V < 5.012 ? ( 'INSTALLDIRS'  => 'perl' ) : ()),
50
51     ( $EUMM_VERSION > 6.31 ? (
52         'LICENSE' => 'perl',
53     ) : () ),
54
55         test => {TESTS => 't/*.t t/*/*.t'}
56 );
57
58 package MY;
59
60 sub libscan
61 { # Determine things that should *not* be installed
62     my($self, $path) = @_;
63     return '' if $path =~ m/~/;
64     $path;
65 }
66
67 sub init_dirscan
68 {
69     my($self) = shift;
70     $self->SUPER::init_dirscan;
71     # Need to force perldoc.pod to install at the top level of the lib dir:
72     $self->{PM}{'perldoc.pod'} = $self->catfile($self->{INST_LIB}, 'perldoc.pod');
73     return;
74 }
75
76 __END__