3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Class/MOP.pm';
14 $ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE};
17 requires 'Devel::GlobalDestruction';
18 requires 'MRO::Compat' => '0.05';
19 requires 'Scalar::Util' => '1.18';
20 requires 'Sub::Name' => '0.04';
21 requires 'Task::Weaken';
23 test_requires 'File::Spec';
24 test_requires 'Test::More' => '0.77';
25 test_requires 'Test::Exception' => '0.21';
27 makemaker_args( CCFLAGS => $ccflags );
30 my (@clean, @OBJECT, %XS);
32 for my $xs (<xs/*.xs>) {
33 (my $c = $xs) =~ s/\.xs$/.c/i;
34 (my $o = $xs) =~ s/\.xs$/\$(OBJ_EXT)/i;
42 (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i;
48 clean => { FILES => join(q{ }, @clean) },
49 OBJECT => join (q{ }, @OBJECT),
60 # Use the cpan-smolder-stable script in the Moose svn root to figure
61 # out what on CPAN will break with the latest Moose, then update this
69 for my $mod ( sort keys %conflicts ) {
73 my $installed = $mod->VERSION();
74 if ( $installed le $conflicts{$mod} ) {
79 This version of Class::MOP conflicts with the version of
80 $mod ($installed) you have installed.
82 You will need to upgrade $mod after installing
83 this version of Class::MOP.
94 # More or less copied from Module::Build
95 return if $ENV{PERL_MM_USE_DEFAULT};
96 return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) );
106 my $ret = shift->SUPER::const_cccmd(@_);
107 return q{} unless $ret;
109 if ($Config{cc} =~ /^cl\b/i) {
110 warn 'you are using MSVC... my condolences.';