Catalyst::Devel - kill C3 warnings on 5.10
Rafael Kitover [Thu, 30 Apr 2009 20:11:57 +0000 (20:11 +0000)]
Changes
Makefile.PL

diff --git a/Changes b/Changes
index baf63f9..dc13fee 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 This file documents the revision history for Perl extension Catalyst-Devel.
 
+        - kill C3 warning on 5.10, add resources to META.yml (caelum)
+
 1.12    2009-04-26 15:42
         - Remove the deprecated BindLex from the _create.pl help message (rafl)
 
index eccfd2a..5c2c939 100644 (file)
@@ -57,6 +57,27 @@ EOE
     }
 }
 
+# kill warning from older versions of Class::C3
+if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) {
+    requires 'Class::C3' => '0.20';
+}
+
 auto_install;
 
 WriteAll;
+
+if ($Module::Install::AUTHOR) {
+    Meta->{values}{resources} = [
+        [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
+        [ 'IRC'         => 'irc://irc.perl.org/#catalyst' ],
+        [ 'license',    => 'http://dev.perl.org/licenses/' ],
+        [ 'homepage',   => 'http://dev.catalyst.perl.org/'],
+        [ 'repository', => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Devel/' ],
+    ];
+
+    Meta->{values}{requires} = [ grep {
+        $_->[0] ne 'Class::C3'
+    } @{ Meta->{values}{requires} } ];
+
+    Meta->write;
+}