[Catalyst-commits] r13474 - trunk/Config-Any
bricas at dev.catalyst.perl.org
bricas at dev.catalyst.perl.org
Thu Aug 5 19:36:50 GMT 2010
Author: bricas
Date: 2010-08-05 20:36:50 +0100 (Thu, 05 Aug 2010)
New Revision: 13474
Modified:
trunk/Config-Any/Makefile.PL
Log:
tidy Makefile.PL
Modified: trunk/Config-Any/Makefile.PL
===================================================================
--- trunk/Config-Any/Makefile.PL 2010-08-05 01:45:10 UTC (rev 13473)
+++ trunk/Config-Any/Makefile.PL 2010-08-05 19:36:50 UTC (rev 13474)
@@ -1,4 +1,4 @@
-use inc::Module::Install 0.91;
+use inc::Module::Install 0.99;
if ( -e 'MANIFEST.SKIP' ) {
system( 'pod2text lib/Config/Any.pm > README' );
@@ -11,18 +11,20 @@
requires 'Module::Pluggable' => '3.01';
-if (can_use('Config::General') && !can_use('Config::General', '2.47')) {
+# 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';
-if ($Module::Install::AUTHOR) {
- Meta->{values}{requires} = [ grep {
- $_->[0] ne 'Config::General'
- } @{ Meta->{values}{requires} } ];
+# 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/';
+resources repository =>
+ 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Config-Any/';
WriteAll;
More information about the Catalyst-commits
mailing list