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