1use 5.006; 2use strict; 3use warnings; 4 5use ExtUtils::MakeMaker; 6 7my $EUMM_VERSION = $ExtUtils::MakeMaker::VERSION; 8 9WriteMakefile( 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 ($ENV{PERL_CORE} ? () : 48 ('MAN1PODS' => { 'perldoc.pod' => 'blib/man1/perldoc.1' })), 49 50 ($^V >= 5.008001 && $^V < 5.012 ? ( 'INSTALLDIRS' => 'perl' ) : ()), 51 52 ( $EUMM_VERSION > 6.31 ? ( 53 'LICENSE' => 'perl', 54 ) : () ), 55 56 test => {TESTS => 't/*.t t/*/*.t'} 57); 58 59package MY; 60 61sub libscan 62{ # Determine things that should *not* be installed 63 my($self, $path) = @_; 64 return '' if $path =~ m/~/; 65 $path; 66} 67 68sub 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__ 78