X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=0b0c7a3d64023e746c50031af5dc2d04e5bcc51f;hb=d004c8d565f9b314da7652e9368aeb4587ffaa3d;hp=ef1680fe7c63a80f340181327cc403de773f6d44;hpb=72bc0a470ac680d3f73091f212a76b8edc638165;p=gitmo%2FClass-MOP.git diff --git a/Makefile.PL b/Makefile.PL index ef1680f..0b0c7a3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,8 @@ use strict; use warnings; use inc::Module::Install; +use Module::Install::AuthorRequires; +use Module::Install::ExtraTests; use 5.008001; check_conflicts(); @@ -12,18 +14,41 @@ license 'perl'; require Config; my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.'; -$ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE}; + +if ( -d '.git' || $ENV{MAINTAINER_MODE} ) { + $ccflags .= ' -Wall -Wdeclaration-after-statement'; +} requires 'Carp'; +requires 'Data::OptList'; requires 'Devel::GlobalDestruction'; -requires 'MRO::Compat' => '0.05'; -requires 'Scalar::Util' => '1.18'; -requires 'Sub::Name' => '0.04'; +requires 'Eval::Closure'; +requires 'List::MoreUtils' => '0.12'; +requires 'MRO::Compat' => '0.05'; +requires 'Package::DeprecationManager' => '0.10'; +requires 'Package::Stash' => '0.15'; +requires 'Package::Stash::XS' => '0.17'; +requires 'Scalar::Util' => '1.18'; +requires 'Sub::Name' => '0.05'; +requires 'Try::Tiny' => '0.02'; requires 'Task::Weaken'; test_requires 'File::Spec'; -test_requires 'Test::More' => '0.77'; -test_requires 'Test::Exception' => '0.21'; +test_requires 'Test::More' => '0.88'; +test_requires 'Test::Fatal' => '0.001'; +test_requires 'Test::Requires' => '0.05'; + +author_requires 'Algorithm::C3'; +author_requires 'Module::Info'; +author_requires 'Test::LeakTrace'; +author_requires 'Test::NoTabs'; +author_requires 'Test::Output'; +author_requires 'Test::Spelling'; + +repository 'git://git.moose.perl.org/Class-MOP.git'; +add_metadata(x_authority => 'cpan:STEVAN'); + +extra_tests(); makemaker_args( CCFLAGS => $ccflags ); @@ -63,7 +88,8 @@ WriteAll(); # before a release. sub check_conflicts { my %conflicts = ( - 'Moose' => '0.72', + 'Moose' => '1.14', + 'namespace::autoclean' => '0.08', ); my $found = 0;