From: gfx Date: Fri, 15 Jan 2010 06:01:05 +0000 (+0900) Subject: Add conflicting checks to Makefile.PL X-Git-Tag: 0.47~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3310ddf29da76ecf40333e91b0c855113943dab3;p=gitmo%2FMouse.git Add conflicting checks to Makefile.PL --- 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