3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Moose.pm';
14 requires 'Scalar::Util' => '1.19';
16 requires 'Class::MOP' => '0.76';
17 requires 'List::MoreUtils' => '0.12';
18 requires 'Sub::Exporter' => '0.972';
19 requires 'Task::Weaken' => '0';
21 # things the tests need
22 build_requires 'Test::More' => '0.77';
23 build_requires 'Test::Exception' => '0.21';
29 # Use the cpan-smolder-stable script in the Moose svn root to figure
30 # out what on CPAN will break with the latest Moose, then update this
34 'MooseX::Singleton' => '0.12',
35 'MooseX::Params::Validate' => '0.05',
40 for my $mod ( sort keys %conflicts ) {
44 my $installed = $mod->VERSION();
45 if ( $installed le $conflicts{$mod} ) {
50 This version of Moose conflicts with the version of
51 $mod ($installed) you have installed.
53 You will need to upgrade $mod after installing
54 this version of Moose.
65 # More or less copied from Module::Build
66 return if $ENV{PERL_MM_USE_DEFAULT};
67 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));