2 use warnings FATAL => 'all';
4 use ExtUtils::MakeMaker;
5 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
7 unless (-e 'META.yml') {
8 warn "MYMETA.yml is going to be completely wrong. Sorry.\n";
13 'Test::Fatal' => 0.003,
17 'Class::Method::Modifiers' => 1.05,
18 'strictures' => 1.001001,
21 # have to do this since old EUMM dev releases miss the eval $VERSION line
22 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
23 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
27 VERSION_FROM => 'lib/Moo.pm',
30 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
31 ($mymeta_works ? () : (%BUILD_DEPS)),
34 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
35 BUILD_REQUIRES => \%BUILD_DEPS,
36 META_ADD => { requires => \%RUN_DEPS }
38 : ( # META_ADD both to get META right - only Makefile written
40 requires => \%RUN_DEPS,
41 build_requires => \%BUILD_DEPS,
45 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),