From: gfx Date: Sat, 19 Dec 2009 08:09:58 +0000 (+0900) Subject: Add resolution of conflitcting extention X-Git-Tag: 0.45~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a1d1c5cc366a1881fe5ed25c0f7b3eb60999854d;p=gitmo%2FMouse.git Add resolution of conflitcting extention --- diff --git a/Makefile.PL b/Makefile.PL index e960218..6e438d7 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -25,12 +25,13 @@ if($] < 5.010) { recommends 'Class::C3'; } -require 'lib/Mouse/Spec.pm'; # for the version +if(eval{ require MouseX::AttributeHelpers }){ + if(!eval{ MouseX::AttributeHelpers->VERSION(0.06) }){ + requires 'MouseX::AttributeHelpers' => 0.06; + } +} -#if(Mouse::Spec->MouseVersion =~ /_/){ # DEVEL RELEASE -# require Carp::Always; Carp::Always->import(); -# include_deps 'Carp::Always'; -#} +require 'lib/Mouse/Spec.pm'; # for the version # cc_available recognizes the '--pp' and '--xs' options my $use_xs = ($] >= 5.008_001 && cc_available());