X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=d64aaa715d7e290aef9bde57f76f2ed592e23b24;hb=5f5db57fc502ce8c23c2f4515bb59d187145c697;hp=c99c9e7ff05ce333c79b016bb6bbf1caccfcd623;hpb=6d71fae7388c406fe3a6b6e0eefa478827841d00;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index c99c9e7..d64aaa7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,31 @@ use strict; use warnings FATAL => 'all'; +use 5.008001; 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/Role-Tiny.git', + }, + }, + );