| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | use ExtUtils::MakeMaker; | ||
| 4 | |||
| 5 | my %params = ( | ||
| 6 | NAME => 'ExtUtils::MakeMaker::CPANfile', | ||
| 7 | AUTHOR => 'Kenichi Ishigaki <ishigaki@cpan.org>', | ||
| 8 | ABSTRACT_FROM => 'lib/ExtUtils/MakeMaker/CPANfile.pm', | ||
| 9 | VERSION_FROM => 'lib/ExtUtils/MakeMaker/CPANfile.pm', | ||
| 10 | LICENSE => 'perl', | ||
| 11 | PREREQ_PM => { | ||
| 12 | 'ExtUtils::MakeMaker' => '6.17', # Lancaster Consensus | ||
| 13 | 'Cwd' => '0', | ||
| 14 | 'File::Path' => '0', | ||
| 15 | 'Module::CPANfile' => '0', | ||
| 16 | 'CPAN::Meta::Converter' => '2.141170', | ||
| 17 | 'Test::More' => '0.88', | ||
| 18 | 'version' => '0.76', | ||
| 19 | }, | ||
| 20 | META_MERGE => { | ||
| 21 | resources => { | ||
| 22 | repository => 'https://github.com/charsbar/ExtUtils-MakeMaker-CPANfile', | ||
| 23 | }, | ||
| 24 | }, | ||
| 25 | ); | ||
| 26 | |||
| 27 | my $eumm = eval $ExtUtils::MakeMaker::VERSION; | ||
| 28 | delete $params{LICENSE} if $eumm < 6.31; | ||
| 29 | delete $params{META_MERGE} if $eumm < 6.46; | ||
| 30 | |||
| 31 | WriteMakefile(%params); |