X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=Makefile.PL;h=66236284379079d1e9eb90961577b2cc382696bf;hp=314ab758c99dd10b4e7a47a06207cd920c753619;hb=3310ddf29da76ecf40333e91b0c855113943dab3;hpb=3e073ebb5257629d20ebe83d849ccdcf97244914 diff --git a/Makefile.PL b/Makefile.PL index 314ab75..6623628 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -25,6 +25,24 @@ if($] < 5.010) { recommends 'Class::C3'; } +my %suggests = ( + 'Class::Method::Modifiers::Fast' => 0.041, + 'MouseX::AttributeHelpers' => 0.06, +); + +while(my($mod, $least) = each %suggests){ + if(can_use($mod)){ + if(!eval { $mod->VERSION($least) }){ + my $ver = $mod->VERSION; + warn("\n", + "WARNING: $mod is installed, but its version ($ver) is too old (< $least).\n", + " Please update $mod after installation of Mouse.\n", + "\n" + ); + } + } +} + require 'lib/Mouse/Spec.pm'; # for the version #if(Mouse::Spec->MouseVersion =~ /_/){ # DEVEL RELEASE