X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=7628592bbd5cbd9f6d85830a4862546c957f6d28;hb=f52b98215874945b6f2f975a99c530c019bfbdbb;hp=e53578d340de6eb3cb51f73f2108ce68730ca477;hpb=941a6305f15e607de118d0b74c11f67ff1e39d24;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index e53578d..7628592 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,6 @@ use strict; use warnings FATAL => 'all'; -use 5.008003; +use 5.008001; use ExtUtils::MakeMaker; (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; @@ -9,35 +9,23 @@ 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, ($] >= 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/Role-Tiny.git', + }, + }, + );