1require 5.006; 2use ExtUtils::MakeMaker; 3 4WriteMakefile( 5 NAME => "Mozilla::CA", 6 VERSION_FROM => "lib/Mozilla/CA.pm", 7 ABSTRACT_FROM => "lib/Mozilla/CA.pm", 8 AUTHOR => 'Gisle Aas <gisle@activestate.com>', 9 LICENSE => 'open_source', 10 MIN_PERL_VERSION => 5.006, 11 META_MERGE => { 12 'meta-spec' => { version => 2 }, 13 dynamic_config => 0, 14 resources => { 15 homepage => 'https://github.com/gisle/mozilla-ca', 16 license => [ 17 'https://www.mozilla.org/media/MPL/2.0/index.txt' 18 ], 19 bugtracker => { 20 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Mozilla-CA' 21 }, 22 repository => { 23 url => 'https://github.com/gisle/mozilla-ca.git', 24 web => 'https://github.com/gisle/mozilla-ca', 25 type => 'git', 26 }, 27 }, 28 }, 29 TEST_REQUIRES => { 30 Test => 0, 31 }, 32); 33 34BEGIN { 35 # compatibility with older versions of MakeMaker 36 my $developer = -d "eg"; 37 my %mm_req = ( 38 LICENCE => 6.31, 39 META_MERGE => 6.45, 40 META_ADD => 6.45, 41 MIN_PERL_VERSION => 6.48, 42 TEST_REQUIRES => 6.63_03, 43 ); 44 undef(*WriteMakefile); 45 *WriteMakefile = sub { 46 my %arg = @_; 47 for (keys %mm_req) { 48 unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) { 49 warn "$_ $@" if $developer; 50 delete $arg{$_}; 51 } 52 } 53 ExtUtils::MakeMaker::WriteMakefile(%arg); 54 }; 55} 56