X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=680e5f64ca360fa8948cf28bd716797593162dde;hb=76acfa6c8aca484921a7fd50332d85e366d2b30a;hp=b047631da18bef18372286038ff1d1f67b737e34;hpb=edb9977c5fa2b2a737ab19ce83f934253c74611f;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index b047631..680e5f6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,35 +9,28 @@ my %BUILD_DEPS = ( 'Test::Fatal' => 0.003, ); -my %RUN_DEPS = ( - 'Class::Method::Modifiers' => 1.07, - 'strictures' => 1.001001, -); - # 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 }; -my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 }; WriteMakefile( - NAME => 'Moo', - VERSION_FROM => 'lib/Moo.pm', + NAME => 'Role::Tiny', + VERSION_FROM => 'lib/Role/Tiny.pm', PREREQ_PM => { - %RUN_DEPS, ($] >= 5.010 ? () : ('MRO::Compat' => 0)), ($mymeta_works ? () : (%BUILD_DEPS)), }, - ($mymeta_works - ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong - BUILD_REQUIRES => \%BUILD_DEPS, - META_ADD => { requires => \%RUN_DEPS } - ) - : ( # META_ADD both to get META right - only Makefile written - META_ADD => { - requires => \%RUN_DEPS, - build_requires => \%BUILD_DEPS, - } - ) - ), - ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), - LICENSE => 'perl', + $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' ] + } + }, );