3 use inc::Module::Install;
7 perl_version '5.008001';
8 all_from 'lib/Class/MOP.pm';
12 my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.';
14 if ( -d '.git' || $ENV{MAINTAINER_MODE} ) {
15 $ccflags .= ' -Wall -Wdeclaration-after-statement';
19 requires 'Data::OptList';
20 requires 'Devel::GlobalDestruction';
21 requires 'List::MoreUtils' => '0.12';
22 requires 'MRO::Compat' => '0.05';
23 requires 'Package::DeprecationManager' => '0.04';
24 requires 'Package::Stash';
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';
35 add_metadata(x_authority => 'cpan:STEVAN');
39 makemaker_args( CCFLAGS => $ccflags );
42 my (@clean, @OBJECT, %XS);
44 for my $xs (<xs/*.xs>) {
45 (my $c = $xs) =~ s/\.xs$/.c/i;
46 (my $o = $xs) =~ s/\.xs$/\$(OBJ_EXT)/i;
54 (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i;
60 clean => { FILES => join(q{ }, @clean) },
61 OBJECT => join (q{ }, @OBJECT),
72 # Use the cpan-smolder-stable script in the Moose svn root to figure
73 # out what on CPAN will break with the latest Moose, then update this
81 for my $mod ( sort keys %conflicts ) {
85 my $installed = $mod->VERSION();
86 if ( $installed le $conflicts{$mod} ) {
91 This version of Class::MOP conflicts with the version of
92 $mod ($installed) you have installed.
94 You will need to upgrade $mod after installing
95 this version of Class::MOP.
104 return unless $found;
106 # More or less copied from Module::Build
107 return if $ENV{PERL_MM_USE_DEFAULT};
108 return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) );
118 my $ret = shift->SUPER::const_cccmd(@_);
119 return q{} unless $ret;
121 if ($Config{cc} =~ /^cl\b/i) {
122 warn 'you are using MSVC... my condolences.';