Commit | Line | Data |
6d71fae7 |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
2215d4b9 |
3 | use 5.008001; |
6d71fae7 |
4 | use ExtUtils::MakeMaker; |
253d7c99 |
5 | (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; |
6d71fae7 |
6 | |
bb6d1b87 |
7 | my %BUILD_DEPS = ( |
8 | 'Test::More' => 0.96, |
9 | 'Test::Fatal' => 0.003, |
10 | ); |
11 | |
bb6d1b87 |
12 | # have to do this since old EUMM dev releases miss the eval $VERSION line |
13 | my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; |
bb6d1b87 |
14 | |
6d71fae7 |
15 | WriteMakefile( |
5ef4ffe7 |
16 | NAME => 'Role-Tiny', |
17 | VERSION_FROM => 'lib/Role/Tiny.pm', |
bb6d1b87 |
18 | PREREQ_PM => { |
bb6d1b87 |
19 | ($] >= 5.010 ? () : ('MRO::Compat' => 0)), |
20 | ($mymeta_works ? () : (%BUILD_DEPS)), |
21 | }, |
5ef4ffe7 |
22 | $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), |
6d71fae7 |
23 | ); |