3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Class/MOP.pm';
14 my $ccflags = -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE} ? '-Wall' : '';
17 requires 'Devel::GlobalDestruction';
18 requires 'MRO::Compat' => '0.05';
19 requires 'Scalar::Util' => '1.18';
20 requires 'Sub::Identify' => '0.03';
21 requires 'Sub::Name' => '0.04';
22 requires 'Task::Weaken';
24 test_requires 'File::Spec';
25 test_requires 'Test::More' => '0.77';
26 test_requires 'Test::Exception' => '0.21';
28 makemaker_args( CCFLAGS => $ccflags );
32 # Use the cpan-smolder-stable script in the Moose svn root to figure
33 # out what on CPAN will break with the latest Moose, then update this
41 for my $mod ( sort keys %conflicts ) {
45 my $installed = $mod->VERSION();
46 if ( $installed le $conflicts{$mod} ) {
51 This version of Class::MOP conflicts with the version of
52 $mod ($installed) you have installed.
54 You will need to upgrade $mod after installing
55 this version of Class::MOP.
66 # More or less copied from Module::Build
67 return if $ENV{PERL_MM_USE_DEFAULT};
68 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));