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 'Package::DeprecationManager' => '0.04';
26 requires 'Package::Stash';
27 requires 'Scalar::Util' => '1.18';
28 requires 'Sub::Name' => '0.04';
29 requires 'Try::Tiny' => '0.02';
30 requires 'Task::Weaken';
32 test_requires 'File::Spec';
33 test_requires 'Test::More' => '0.88';
34 test_requires 'Test::Exception' => '0.27';
36 repository 'git://git.moose.perl.org/Class-MOP.git';
37 add_metadata(x_authority => 'cpan:STEVAN');
41 makemaker_args( CCFLAGS => $ccflags );
44 my (@clean, @OBJECT, %XS);
46 for my $xs (<xs/*.xs>) {
47 (my $c = $xs) =~ s/\.xs$/.c/i;
48 (my $o = $xs) =~ s/\.xs$/\$(OBJ_EXT)/i;
56 (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i;
62 clean => { FILES => join(q{ }, @clean) },
63 OBJECT => join (q{ }, @OBJECT),
74 # Use the cpan-smolder-stable script in the Moose svn root to figure
75 # out what on CPAN will break with the latest Moose, then update this
83 for my $mod ( sort keys %conflicts ) {
87 my $installed = $mod->VERSION();
88 if ( $installed le $conflicts{$mod} ) {
93 This version of Class::MOP conflicts with the version of
94 $mod ($installed) you have installed.
96 You will need to upgrade $mod after installing
97 this version of Class::MOP.
106 return unless $found;
108 # More or less copied from Module::Build
109 return if $ENV{PERL_MM_USE_DEFAULT};
110 return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) );
120 my $ret = shift->SUPER::const_cccmd(@_);
121 return q{} unless $ret;
123 if ($Config{cc} =~ /^cl\b/i) {
124 warn 'you are using MSVC... my condolences.';