From: Brian Cassidy Date: Thu, 5 Aug 2010 19:36:50 +0000 (+0000) Subject: tidy Makefile.PL X-Git-Tag: v0.20~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb6669bf50b06d26f044f070ac3dd82adcea5150;p=p5sagit%2FConfig-Any.git tidy Makefile.PL --- diff --git a/Makefile.PL b/Makefile.PL index 31e2146..86b802a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use inc::Module::Install 0.91; +use inc::Module::Install 0.99; if ( -e 'MANIFEST.SKIP' ) { system( 'pod2text lib/Config/Any.pm > README' ); @@ -11,18 +11,20 @@ all_from 'lib/Config/Any.pm'; requires 'Module::Pluggable' => '3.01'; -if (can_use('Config::General') && !can_use('Config::General', '2.47')) { +# Upgrade Config::General is necessary +if ( can_use( 'Config::General' ) && !can_use( 'Config::General', '2.47' ) ) { requires 'Config::General' => '2.47'; } test_requires 'Test::More'; -if ($Module::Install::AUTHOR) { - Meta->{values}{requires} = [ grep { - $_->[0] ne 'Config::General' - } @{ Meta->{values}{requires} } ]; +# Scrub requires() for META output +if ( $Module::Install::AUTHOR ) { + Meta->{ values }{ requires } = [ grep { $_->[ 0 ] ne 'Config::General' } + @{ Meta->{ values }{ requires } } ]; } -resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Config-Any/'; +resources repository => + 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Config-Any/'; WriteAll;