1use ExtUtils::MakeMaker; 2 3my $mm_ver = $ExtUtils::MakeMaker::VERSION; 4if ($mm_ver =~ /_/) { # dev version 5 $mm_ver = eval $mm_ver; 6 die $@ if $@; 7} 8 9# See lib/ExtUtils/MakeMaker.pm for details of how to influence 10# the contents of the Makefile that is written. 11WriteMakefile( 12 'NAME' => 'Crypt::RandPasswd', 13 'VERSION_FROM' => 'lib/Crypt/RandPasswd.pm', # finds $VERSION 14 15 ($mm_ver <= 6.31 16 ? () 17 : (LICENSE => 'perl') 18 ), 19 20 ($mm_ver <= 6.45 ? () : (META_MERGE => { 21 'meta-spec' => { version => 2 }, 22 resources => { 23 bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-RandPasswd', 24 repository => { 25 type => 'git', 26 web => 'https://github.com/neilbowers/Crypt-RandPasswd', 27 url => 'git://github.com/neilbowers/Crypt-RandPasswd.git', 28 }, 29 }, 30 })), 31 32); 33