X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=Makefile.PL;h=23e8e909b5ba8b669b4e7e67268d956fd30ea849;hp=28fac16ee22d28e5c83800b2b90b6c418a2ecd76;hb=df0b9676f6f1ce3441a2d2f83cdcb8cd4a952966;hpb=45758652c7c8ed8557ecf4170131a42a4477deb5 diff --git a/Makefile.PL b/Makefile.PL index 28fac16..23e8e90 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use inc::Module::Install 0.87; +use inc::Module::Install 1.00; if ( -e 'MANIFEST.SKIP' ) { system( 'pod2text lib/Config/Any.pm > README' ); @@ -11,9 +11,20 @@ all_from 'lib/Config/Any.pm'; requires 'Module::Pluggable' => '3.01'; +# 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'; -auto_install; -resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Config-Any/'; +# Scrub requires() for META output +if ( $Module::Install::AUTHOR ) { + Meta->{ values }{ requires } = [ grep { $_->[ 0 ] ne 'Config::General' } + @{ Meta->{ values }{ requires } } ]; +} + +resources repository => + 'git://git.shadowcat.co.uk/p5sagit/Config-Any.git'; WriteAll;