3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Class/MOP.pm';
14 my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.';
16 if ( -d '.git' || $ENV{MAINTAINER_MODE} ) {
17 $ccflags .= ' -Wall -Wdeclaration-after-statement';
21 requires 'Data::OptList';
22 requires 'Devel::GlobalDestruction';
23 requires 'List::MoreUtils' => '0.12';
24 requires 'MRO::Compat' => '0.05';
25 requires 'Scalar::Util' => '1.18';
26 requires 'Sub::Name' => '0.04';
27 requires 'Try::Tiny' => '0.02';
28 requires 'Task::Weaken';
30 test_requires 'File::Spec';
31 test_requires 'Test::More' => '0.88';
32 test_requires 'Test::Exception' => '0.27';
34 repository 'git://git.moose.perl.org/Class-MOP.git';
38 makemaker_args( CCFLAGS => $ccflags );
41 my (@clean, @OBJECT, %XS);
43 for my $xs (<xs/*.xs>) {
44 (my $c = $xs) =~ s/\.xs$/.c/i;
45 (my $o = $xs) =~ s/\.xs$/\$(OBJ_EXT)/i;
53 (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i;
59 clean => { FILES => join(q{ }, @clean) },
60 OBJECT => join (q{ }, @OBJECT),
71 # Use the cpan-smolder-stable script in the Moose svn root to figure
72 # out what on CPAN will break with the latest Moose, then update this
80 for my $mod ( sort keys %conflicts ) {
84 my $installed = $mod->VERSION();
85 if ( $installed le $conflicts{$mod} ) {
90 This version of Class::MOP conflicts with the version of
91 $mod ($installed) you have installed.
93 You will need to upgrade $mod after installing
94 this version of Class::MOP.
103 return unless $found;
105 # More or less copied from Module::Build
106 return if $ENV{PERL_MM_USE_DEFAULT};
107 return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) );
117 my $ret = shift->SUPER::const_cccmd(@_);
118 return q{} unless $ret;
120 if ($Config{cc} =~ /^cl\b/i) {
121 warn 'you are using MSVC... my condolences.';