From: Graham Knop Date: Wed, 4 Sep 2013 22:17:07 +0000 (-0400) Subject: correct MYMETA handling on older EUMM releases X-Git-Tag: v1.003002~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=40c86119f930217d0db856c6a056957cf07f3d97;p=gitmo%2FRole-Tiny.git correct MYMETA handling on older EUMM releases --- diff --git a/Makefile.PL b/Makefile.PL index 2ff04b9..49d1ac2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,8 @@ my %BUILD_DEPS = ( ); # have to do this since old EUMM dev releases miss the eval $VERSION line -my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; +my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02; +my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07; WriteMakefile( NAME => 'Role::Tiny', @@ -21,6 +22,7 @@ WriteMakefile( ($mymeta_works ? () : (%BUILD_DEPS)), }, $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), + ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), -f 'META.yml' ? () : (META_MERGE => { 'meta-spec' => { version => 2 },