Bump bugfixed strictures dep
[gitmo/Moo.git] / Makefile.PL
CommitLineData
6d71fae7 1use strict;
2use warnings FATAL => 'all';
2215d4b9 3use 5.008001;
6d71fae7 4use ExtUtils::MakeMaker;
253d7c99 5(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
6d71fae7 6
bb6d1b87 7my %BUILD_DEPS = (
8 'Test::More' => 0.96,
9 'Test::Fatal' => 0.003,
10);
11
12my %RUN_DEPS = (
cc1d7a92 13 'Class::Method::Modifiers' => 1.10,
4a7640d1 14 'strictures' => 1.004003,
8f7cf9cf 15 'Module::Runtime' => 0.012,
1e0dc318 16 'Role::Tiny' => 1.001003,
e3797266 17 'Devel::GlobalDestruction' => 0.09,
bb6d1b87 18);
19
20# have to do this since old EUMM dev releases miss the eval $VERSION line
21my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
22my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
23
627063f7 24my %extra_info = (
25 resources => {
26 repository => 'git://git.shadowcat.co.uk/gitmo/Moo.git'
27 }
28);
29
6d71fae7 30WriteMakefile(
31 NAME => 'Moo',
32 VERSION_FROM => 'lib/Moo.pm',
bb6d1b87 33 PREREQ_PM => {
34 %RUN_DEPS,
35 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
36 ($mymeta_works ? () : (%BUILD_DEPS)),
37 },
38 ($mymeta_works
39 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
40 BUILD_REQUIRES => \%BUILD_DEPS,
627063f7 41 META_ADD => { requires => \%RUN_DEPS, %extra_info }
bb6d1b87 42 )
43 : ( # META_ADD both to get META right - only Makefile written
44 META_ADD => {
45 requires => \%RUN_DEPS,
46 build_requires => \%BUILD_DEPS,
627063f7 47 %extra_info,
bb6d1b87 48 }
49 )
50 ),
eb6fa3d7 51 META_MERGE => {
52 no_index => {
53 directory => [ 'xt' ]
54 }
55 },
bb6d1b87 56 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
6d71fae7 57 LICENSE => 'perl',
58);