X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=Makefile.PL;h=86b802a657b120df5e7b6441be92497dcb41c077;hp=8338d40c8fd06f6bec07c2f298a60ead95dee0ca;hb=766100bdb8cc2f48b73464a9364a1dab276d186e;hpb=5f5b9e4c575591a0749103e0bbeb556cde5c5cac diff --git a/Makefile.PL b/Makefile.PL index 8338d40..86b802a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,16 +1,30 @@ -use inc::Module::Install 0.71; +use inc::Module::Install 0.99; if ( -e 'MANIFEST.SKIP' ) { system( 'pod2text lib/Config/Any.pm > README' ); } perl_version '5.006'; +name 'Config-Any'; 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; +# 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/'; + WriteAll;