X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=af4d5bec8200b8091d4e7abf61aa1999b5fe3e9e;hb=0ee1bd42cb95cd594e777fa676e80cddc66e0393;hp=93dcb4f635c289944582308c7393c9bc8abb7f07;hpb=2215d4b9bdc64e7994b2a90d50cc2ab906115d0f;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index 93dcb4f..af4d5be 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,35 +9,29 @@ my %BUILD_DEPS = ( 'Test::Fatal' => 0.003, ); -my %RUN_DEPS = ( - 'Class::Method::Modifiers' => 1.05, - '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, + 'Class::Method::Modifiers' => '1.10', ($] >= 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' ] + } + }, );