X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=be8095f0f6adfd498517bd51790c6aba06f541ca;hb=13984b27a61e367b800208462ad2e077ab3b87ee;hp=ae5e2e370ab3134dec77512cb359644da4cd6f24;hpb=1cdeb21f11323218fd364b40f86e6b0df8a6a625;p=catagits%2FTest-WWW-Selenium-Catalyst.git diff --git a/Makefile.PL b/Makefile.PL index ae5e2e3..be8095f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,22 +2,22 @@ use strict; use warnings; use inc::Module::Install; -name('Test-WWW-Selenium-Catalyst'); -author('Jonathan Rockway '); -version_from('lib/Test/WWW/Selenium/Catalyst.pm'); -abstract_from('lib/Test/WWW/Selenium/Catalyst.pm'); -license('Perl'); -include('ExtUtils::AutoInstall'); +name 'Test-WWW-Selenium-Catalyst'; +perl_version '5.008000'; +all_from 'lib/Test/WWW/Selenium/Catalyst.pm'; +license 'Perl'; requires( 'Alien::SeleniumRC' => 0, 'Catalyst::Runtime' => 5.7001, 'Test::WWW::Selenium' => 0, 'Test::More' => 0, 'Catalyst::Utils' => 0, - ); -auto_install(); -WriteAll(); +); -print {*STDERR} "*** \n"; -print {*STDERR} "*** BUG: make test might not work. Please try prove instead.\n"; -print {*STDERR} "*** \n"; +# Old vers of CPAN dont set the env var. safer to assume we are running than +# ask about deps twice +my $under_cpan = $ENV{PERL5_CPANPLUS_IS_RUNNING} || + $ENV{PERL5_CPAN_IS_RUNNING} || + do { require CPAN; $CPAN::VERSION < 1.92 }; +$under_cpan or auto_install(); +WriteAll();