X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=be8095f0f6adfd498517bd51790c6aba06f541ca;hb=13984b27a61e367b800208462ad2e077ab3b87ee;hp=b5d915cdb689488d3cb65cd65bd6017f7f7f90ef;hpb=4f6d213e1b66ba3fd93ce439309af5857775a143;p=catagits%2FTest-WWW-Selenium-Catalyst.git diff --git a/Makefile.PL b/Makefile.PL index b5d915c..be8095f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,17 +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(); + +# 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();