fix quote_sub usage in t/accessor-coerce.t
[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 = (
edb9977c 13 'Class::Method::Modifiers' => 1.07,
952460da 14 'strictures' => 1.001001,
cf62c989 15 'Module::Runtime' => 0.013,
bb6d1b87 16);
17
18# have to do this since old EUMM dev releases miss the eval $VERSION line
19my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
20my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
21
6d71fae7 22WriteMakefile(
23 NAME => 'Moo',
24 VERSION_FROM => 'lib/Moo.pm',
bb6d1b87 25 PREREQ_PM => {
26 %RUN_DEPS,
27 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
28 ($mymeta_works ? () : (%BUILD_DEPS)),
29 },
30 ($mymeta_works
31 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
32 BUILD_REQUIRES => \%BUILD_DEPS,
33 META_ADD => { requires => \%RUN_DEPS }
34 )
35 : ( # META_ADD both to get META right - only Makefile written
36 META_ADD => {
37 requires => \%RUN_DEPS,
38 build_requires => \%BUILD_DEPS,
39 }
40 )
41 ),
42 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
6d71fae7 43 LICENSE => 'perl',
44);