From: Rafael Kitover Date: Thu, 30 Apr 2009 20:11:57 +0000 (+0000) Subject: Catalyst::Devel - kill C3 warnings on 5.10 X-Git-Tag: 1.15~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6c4f9a759cf250f2531bc8d2c4be78d32ae6a15;hp=b9f22ddbb7d7f19997dd2469cb22548b027649e5;p=catagits%2FCatalyst-Devel.git Catalyst::Devel - kill C3 warnings on 5.10 --- diff --git a/Changes b/Changes index baf63f9..dc13fee 100644 --- 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) diff --git a/Makefile.PL b/Makefile.PL index eccfd2a..5c2c939 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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; +}