X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=c0af551634df3b7064422745a5cb6189303062f5;hb=3f3e009e602ec89c1f724e3fabef114ddf68e6d3;hp=5b9fee36f9f711c6fd54000eff250bf067014bdc;hpb=1b948345cdc638f5e67feedd35a7bbb3c04de2b2;p=gitmo%2FClass-MOP.git diff --git a/Makefile.PL b/Makefile.PL index 5b9fee3..c0af551 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,6 +10,12 @@ perl_version '5.008001'; all_from 'lib/Class/MOP.pm'; license 'perl'; +my %conflicts = ( + 'Moose' => '1.04', +); + +check_conflicts(%conflicts); + require Config; my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.'; @@ -22,7 +28,7 @@ requires 'Data::OptList'; requires 'Devel::GlobalDestruction'; requires 'List::MoreUtils' => '0.12'; requires 'MRO::Compat' => '0.05'; -requires 'Package::DeprecationManager'; +requires 'Package::DeprecationManager' => '0.04'; requires 'Package::Stash'; requires 'Scalar::Util' => '1.18'; requires 'Sub::Name' => '0.04'; @@ -71,47 +77,6 @@ EOM WriteAll(); -# Use the cpan-smolder-stable script in the Moose svn root to figure -# out what on CPAN will break with the latest Moose, then update this -# before a release. -sub check_conflicts { - my %conflicts = ( - 'Moose' => '1.04', - ); - - my $found = 0; - for my $mod ( sort keys %conflicts ) { - eval "require $mod"; - next if $@; - - my $installed = $mod->VERSION(); - if ( $installed le $conflicts{$mod} ) { - - print <<"EOF"; - -*** - This version of Class::MOP conflicts with the version of - $mod ($installed) you have installed. - - You will need to upgrade $mod after installing - this version of Class::MOP. -*** - -EOF - - $found = 1; - } - } - - return unless $found; - - # More or less copied from Module::Build - return if $ENV{PERL_MM_USE_DEFAULT}; - return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) ); - - sleep 4; -} - package MY; use Config;