1use ExtUtils::MakeMaker; 2 3# See lib/ExtUtils/MakeMaker.pm for details of how to influence 4# the contents of the Makefile that is written. 5my %WriteMakefileArgs = ( 6 INSTALLDIRS => ( "$]" >= 5.011 ? 'site' : 'perl' ), 7 ABSTRACT_FROM => 'lib/CGI.pod', 8 VERSION_FROM => 'lib/CGI.pm', 9 NAME => 'CGI', 10 DISTNAME => 'CGI', 11 LICENSE => 'artistic_2', 12 VERSION_FROM => 'lib/CGI.pm', 13 MIN_PERL_VERSION => '5.8.1', 14 PREREQ_PM => { 15 'Carp' => 0, # Carp was first released with perl 5 16 'Exporter' => 0, # Exporter was first released with perl 5 17 'overload' => 0, # overload was first released with perl 5.002 18 'strict' => 0, # strict was first released with perl 5 19 'utf8' => 0, # utf8 was first released with perl v5.6.0 20 'warnings' => 0, # warnings was first released with perl v5.6.0 21 'File::Spec' => 0.82, 22 'if' => 0, # core in 5.6.2 and later, for deprecate.pm 23 'parent' => 0.225, # parent was first released with perl v5.10.1 24 'File::Temp' => 0.17, # 0.17 for seekable file handles 25 'HTML::Entities' => 3.69, 26 'Encode' => 0, # Encode was first released with perl v5.7.3 27 'Config' => 0, # Config was first released with perl 5.00307 28 }, 29 TEST_REQUIRES => { 30 'Cwd' => 0, # Cwd was first released with perl 5 31 'POSIX' => 0, # POSIX was first released with perl 5 32 'IO::File' => 0, # IO::File was first released with perl 5.00307 33 'IO::Handle' => 0, # IO::Handle was first released with perl 5.00307 34 'File::Find' => 0, # File::Find was first released with perl 5 35 'Test::Deep' => 0.11, 36 'Test::More' => 0.98, 37 'Test::Warn' => 0.30, 38 'Test::NoWarnings' => 0, 39 }, 40 test => { TESTS => 't/*.t t/headers/*.t' }, 41 linkext => { LINKTYPE => '' }, # no link needed 42 dist => { 43 COMPRESS => 'gzip -9f', 44 SUFFIX => 'gz', 45 ZIP => '/usr/bin/zip', 46 ZIPFLAGS => '-rl' 47 }, 48 META_MERGE => { 49 'meta-spec' => { version => 2 }, 50 requires => { perl => '5.008001' }, 51 resources => { 52 license => 'http://dev.perl.org/licenses/', 53 homepage => 'https://metacpan.org/module/CGI', 54 repository => { 55 url => 'https://github.com/leejo/CGI.pm', 56 web => 'https://github.com/leejo/CGI.pm', 57 type => 'git', 58 }, 59 bugtracker => { 60 web => 'https://github.com/leejo/CGI.pm/issues', 61 } 62 }, 63 no_index => { directory => [qw/t/] }, 64 }, 65); 66 67unless ( eval { ExtUtils::MakeMaker->VERSION(6.64) } ) { 68 my $req = delete $WriteMakefileArgs{'TEST_REQUIRES'}; 69 @{ $WriteMakefileArgs{'BUILD_REQUIRES'} }{ keys %$req } = values %$req; 70} 71 72unless ( eval { ExtUtils::MakeMaker->VERSION(6.5503) } ) { 73 my $req = delete $WriteMakefileArgs{'BUILD_REQUIRES'}; 74 @{ $WriteMakefileArgs{'PREREQ_PM'} }{ keys %$req } = values %$req; 75} 76 77delete $WriteMakefileArgs{'MIN_PERL_VERSION'} 78 unless eval { ExtUtils::MakeMaker->VERSION(6.48) }; 79 80delete $WriteMakefileArgs{'META_MERGE'} 81 unless eval { ExtUtils::MakeMaker->VERSION(6.46) }; 82 83delete $WriteMakefileArgs{'LICENSE'} 84 unless eval { ExtUtils::MakeMaker->VERSION(6.31) }; 85 86WriteMakefile(%WriteMakefileArgs); 87