X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=38b00dcb41fd3bd3924c99a5aaf286fa28500aa0;hb=3aad1e203e3bb072b423f28b991540913f98d5d4;hp=417fa135222f78577da33c2b93862b7fc5ad7262;hpb=d846ade3f993c0e6c140bb28284022e602b8988e;p=gitmo%2FClass-MOP.git diff --git a/Makefile.PL b/Makefile.PL index 417fa13..38b00dc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,19 +10,26 @@ perl_version '5.008001'; all_from 'lib/Class/MOP.pm'; license 'perl'; -my $ccflags = ' -I.'; -$ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE}; +require Config; +my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.'; + +if ( -d '.git' || $ENV{MAINTAINER_MODE} ) { + $ccflags .= ' -Wall -Wdeclaration-after-statement'; +} requires 'Carp'; requires 'Devel::GlobalDestruction'; requires 'MRO::Compat' => '0.05'; requires 'Scalar::Util' => '1.18'; requires 'Sub::Name' => '0.04'; +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::Exception' => '0.27'; + +extra_tests(); makemaker_args( CCFLAGS => $ccflags ); @@ -51,6 +58,10 @@ makemaker_args( CCFLAGS => $ccflags ); ); } +postamble(<<'EOM'); +$(OBJECT) : mop.h +EOM + WriteAll(); # Use the cpan-smolder-stable script in the Moose svn root to figure @@ -58,7 +69,7 @@ WriteAll(); # before a release. sub check_conflicts { my %conflicts = ( - 'Moose' => '0.71', + 'Moose' => '0.85', ); my $found = 0;