croak if Config::General is too old
[p5sagit/Config-Any.git] / Makefile.PL
index 0cbff10..31e2146 100644 (file)
@@ -1,4 +1,4 @@
-use inc::Module::Install 0.71;
+use inc::Module::Install 0.91;
 
 if ( -e 'MANIFEST.SKIP' ) {
     system( 'pod2text lib/Config/Any.pm > README' );
@@ -11,7 +11,18 @@ all_from 'lib/Config/Any.pm';
 
 requires 'Module::Pluggable' => '3.01';
 
+if (can_use('Config::General') && !can_use('Config::General', '2.47')) {
+    requires 'Config::General' => '2.47';
+}
+
 test_requires 'Test::More';
 
-auto_install;
+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;