2 use warnings FATAL => 'all';
4 use ExtUtils::MakeMaker;
5 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
11 'Test::Fatal' => 0.003,
15 'Class::Method::Modifiers' => 1.10,
16 'strictures' => 1.004003,
17 'Module::Runtime' => 0.012,
18 'Role::Tiny' => 1.002004,
19 'Devel::GlobalDestruction' => 0.11,
22 # have to do this since old EUMM dev releases miss the eval $VERSION line
23 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
24 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
26 my $has_test_requires = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.63_03 };
28 if (not $has_test_requires)
30 %BUILD_DEPS = (%BUILD_DEPS, %TEST_DEPS);
36 repository => 'git://git.shadowcat.co.uk/gitmo/Moo.git',
37 IRC => 'irc://irc.perl.org/#moose',
38 bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Moo',
39 license => 'http://dev.perl.org/licenses/',
45 VERSION_FROM => 'lib/Moo.pm',
48 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
49 ($mymeta_works ? () : (%BUILD_DEPS)),
52 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
53 BUILD_REQUIRES => \%BUILD_DEPS,
54 $has_test_requires ? ( TEST_REQUIRES => \%TEST_DEPS ) : (),
55 META_ADD => { requires => \%RUN_DEPS, %extra_info }
57 : ( # META_ADD both to get META right - only Makefile written
59 requires => \%RUN_DEPS,
60 build_requires => \%BUILD_DEPS,
61 test_requires => \%TEST_DEPS,
71 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),