X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=dff623f0534edeeb98839f0530d7eb982eb52ef0;hb=01f38ab1a660b3497e02d8f737b82dbe02299f66;hp=00a6b6876b27d198d5e6b4053a2dbf28fd31c387;hpb=2462603aa36378017c6fe18eb41cd17d2c24e0d9;p=gitmo%2FMouse.git diff --git a/Makefile.PL b/Makefile.PL index 00a6b68..dff623f 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,17 +1,17 @@ # for developpers: BEGIN{ if(grep{ $_ eq '--author' } @ARGV){ - print "^X -S cpanm < author/requires.cpanm\n"; + print "$^X -S cpanm < author/requires.cpanm\n"; system "$^X -S cpanm < author/requires.cpanm"; } } use strict; use warnings; -use inc::Module::Install; +use inc::Module::Install 0.99; # for co-developpers -use Module::Install::XSUtil 0.21; +use Module::Install::XSUtil 0.24; use Module::Install::AuthorTests; system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 @@ -26,6 +26,9 @@ requires 'Scalar::Util' => 1.14; test_requires 'Test::More' => 0.88; test_requires 'Test::Exception' => 0.29; +if ( $ENV{RELEASE_TESTING} || (grep { $_ eq '--author' } @ARGV) ) { + test_requires 'Test::Requires' => 0.03; +} # test_requires 'Test::Output' => 0.16; # too many dependencies! if($] < 5.010) { @@ -33,7 +36,7 @@ if($] < 5.010) { } my %suggests = ( - 'Class::Method::Modifiers::Fast' => 0.041, + 'Data::Util' => 0.55, 'MouseX::AttributeHelpers' => 0.06, ); @@ -57,8 +60,8 @@ require 'lib/Mouse/Spec.pm'; # for the version # include_deps 'Carp::Always'; #} -# cc_available recognizes the '--pp' and '--xs' options -my $use_xs = ($] >= 5.008_001 && cc_available()); +# cc_want deals with the '--pp' and '--xs' options +my $use_xs = ($] >= 5.008_001 && want_xs()); if($use_xs){ print "Mouse configured with XS.\n",