X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=c84264ff923d3311f5b6e784f0409ce4a1cfa59d;hb=e21fed2b5fdbb1ce75e3b7455f57b347cad02ec9;hp=fde85e422255431715c0e3719864d283b894e229;hpb=65e3fb19b4b908f23b63a4af765734b3ed1704de;p=p5sagit%2FFunction-Parameters.git diff --git a/Makefile.PL b/Makefile.PL index fde85e4..c84264f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -46,29 +46,31 @@ my %opt = ( 'meta-spec' => { version => 2 }, resources => { repository => { - url => 'git://git.shadowcat.co.uk/p5sagit/Function-Parameters', - web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Function-Parameters.git', + url => 'git://github.com/mauke/Function-Parameters', + web => 'https://github.com/mauke/Function-Parameters', type => 'git', }, }, }, ); -if (ExtUtils::MakeMaker->VERSION < 6.67_04) { +(my $mm_version = ExtUtils::MakeMaker->VERSION) =~ tr/_//d; + +if ($mm_version < 6.67_04) { # Why? For the glory of satan, of course! no warnings qw(redefine); *ExtUtils::MM_Any::_add_requirements_to_meta_v1_4 = \&ExtUtils::MM_Any::_add_requirements_to_meta_v2; } -if (ExtUtils::MakeMaker->VERSION < 6.63_03) { +if ($mm_version < 6.63_03) { merge_key_into \%opt, 'BUILD_REQUIRES', 'TEST_REQUIRES'; } -if (ExtUtils::MakeMaker->VERSION < 6.55_01) { +if ($mm_version < 6.55_01) { merge_key_into \%opt, 'CONFIGURE_REQUIRES', 'BUILD_REQUIRES'; } -if (ExtUtils::MakeMaker->VERSION < 6.51_03) { +if ($mm_version < 6.51_03) { merge_key_into \%opt, 'PREREQ_PM', 'CONFIGURE_REQUIRES'; }