X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=Makefile.PL;h=839ff878166aefff2757ccc2370a7b219a515735;hp=53923a10acbb8ada180e5d0854f8b2aa3e5c7d28;hb=0d60294cccd50a91bb818ddcf1038179b89e0240;hpb=d9f07dd8c98d6a34bb5d099fe6aa14b2a57558b2 diff --git a/Makefile.PL b/Makefile.PL index 53923a1..839ff87 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use inc::Module::Install 0.76; +use inc::Module::Install 1.00; if ( -e 'MANIFEST.SKIP' ) { system( 'pod2text lib/Config/Any.pm > README' ); @@ -9,9 +9,22 @@ name 'Config-Any'; all_from 'lib/Config/Any.pm'; -requires 'Module::Pluggable' => '3.01'; +requires 'Module::Pluggable::Object' => '3.6'; + +# 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; +# 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;