Commit | Line | Data |
---|---|---|
fa884b76 DM |
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 | ||
96f13870 CBW |
38 | 'META_MERGE' => { |
39 | no_index => { | |
40 | directory => 'corpus', | |
41 | }, | |
fa884b76 DM |
42 | resources => { |
43 | repository => 'https://github.com/mrallen1/Pod-Perldoc.git', | |
96f13870 CBW |
44 | }, |
45 | }, | |
fa884b76 | 46 | |
96f13870 CBW |
47 | ($ENV{PERL_CORE} ? () : |
48 | ('MAN1PODS' => { 'perldoc.pod' => 'blib/man1/perldoc.1' })), | |
fa884b76 | 49 | |
f1d5d40b | 50 | ($^V >= 5.008001 && $^V < 5.012 ? ( 'INSTALLDIRS' => 'perl' ) : ()), |
fa884b76 DM |
51 | |
52 | ( $EUMM_VERSION > 6.31 ? ( | |
53 | 'LICENSE' => 'perl', | |
54 | ) : () ), | |
55 | ||
96f13870 | 56 | test => {TESTS => 't/*.t t/*/*.t'} |
fa884b76 DM |
57 | ); |
58 | ||
59 | package MY; | |
60 | ||
61 | sub libscan | |
62 | { # Determine things that should *not* be installed | |
63 | my($self, $path) = @_; | |
64 | return '' if $path =~ m/~/; | |
65 | $path; | |
66 | } | |
67 | ||
68 | sub init_dirscan | |
69 | { | |
70 | my($self) = shift; | |
71 | $self->SUPER::init_dirscan; | |
72 | # Need to force perldoc.pod to install at the top level of the lib dir: | |
73 | $self->{PM}{'perldoc.pod'} = $self->catfile($self->{INST_LIB}, 'perldoc.pod'); | |
74 | return; | |
75 | } | |
76 | ||
77 | __END__ |