3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Moose.pm';
13 requires 'Scalar::Util' => '1.19';
15 requires 'Class::MOP' => '0.88';
16 requires 'List::MoreUtils' => '0.12';
17 requires 'Sub::Exporter' => '0.980';
18 requires 'Task::Weaken' => '0';
19 requires 'Data::OptList' => '0';
20 requires 'Sub::Name' => '0';
22 test_requires 'Test::More' => '0.77';
23 test_requires 'Test::Exception' => '0.27';
25 if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) {
26 system( $^X, 'author/extract-inline-tests' );
34 # Use the cpan-smolder-stable script in the Moose svn root to figure
35 # out what on CPAN will break with the latest Moose, then update this
39 'MooseX::ClassAttribute' => '0.07',
40 'MooseX::Singleton' => '0.17',
41 'MooseX::StrictConstructor' => '0.07',
42 'MooseX::Params::Validate' => '0.05',
47 for my $mod ( sort keys %conflicts ) {
51 my $installed = $mod->VERSION();
52 if ( $installed le $conflicts{$mod} ) {
57 This version of Moose conflicts with the version of
58 $mod ($installed) you have installed.
60 You will need to upgrade $mod after installing
61 this version of Moose.
72 # More or less copied from Module::Build
73 return if $ENV{PERL_MM_USE_DEFAULT};
74 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));