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=88d7dd329c3e7cc8f02689bcc30f2b38156b5b1d;hb=df0b9676f6f1ce3441a2d2f83cdcb8cd4a952966;hpb=92a04e78451078b33f75e7c44d247b024c27b4f7 diff --git a/Makefile.PL b/Makefile.PL index 88d7dd3..23e8e90 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,16 +1,30 @@ -use inc::Module::Install 0.68; +use inc::Module::Install 1.00; 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'; -requires 'version'; + +# 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;