X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=4239cb9ccf02a671f7f8a382dda789e9919eee1f;hb=3d203c738995ab527217d8f8f4f1050ead661728;hp=c99c9e7ff05ce333c79b016bb6bbf1caccfcd623;hpb=6d71fae7388c406fe3a6b6e0eefa478827841d00;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index c99c9e7..4239cb9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,36 @@ use strict; use warnings FATAL => 'all'; +use 5.006; use ExtUtils::MakeMaker; +(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; + +my %BUILD_DEPS = ( + 'Test::More' => 0.96, + 'Test::Fatal' => 0.003, +); + +# have to do this since old EUMM dev releases miss the eval $VERSION line +my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; WriteMakefile( - NAME => 'Moo', - VERSION_FROM => 'lib/Moo.pm', - ABSTRACT_FROM => 'lib/Moo.pm', - AUTHOR => 'Matt S Trout ', - LICENSE => 'perl', + NAME => 'Role::Tiny', + VERSION_FROM => 'lib/Role/Tiny.pm', + PREREQ_PM => { + ($] >= 5.010 ? () : ('MRO::Compat' => 0)), + ($mymeta_works ? () : (%BUILD_DEPS)), + }, + $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), + + META_ADD => { + resources => { + # r/w: gitmo@git.shadowcat.co.uk:Role-Tiny.git + repository => 'git://git.shadowcat.co.uk/gitmo/Role-Tiny.git', + }, + }, + + META_MERGE => { + no_index => { + directory => [ 'xt' ] + } + }, );