3 use inc::Module::Install;
9 perl_version '5.008001';
10 all_from 'lib/Moose.pm';
14 requires 'Class::MOP' => '0.92_01';
15 requires 'Data::OptList' => '0';
16 requires 'List::MoreUtils' => '0.12';
17 requires 'Scalar::Util' => '1.19';
18 requires 'Sub::Exporter' => '0.980';
19 requires 'Sub::Name' => '0';
20 requires 'Task::Weaken' => '0';
21 requires 'Try::Tiny' => '0.02';
23 test_requires 'Test::More' => '0.88';
24 test_requires 'Test::Exception' => '0.27';
26 if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) {
27 system( $^X, 'author/extract-inline-tests' );
35 # Use the cpan-smolder-stable script in the Moose svn root to figure
36 # out what on CPAN will break with the latest Moose, then update this
40 'MooseX::ClassAttribute' => '0.09',
41 'MooseX::Singleton' => '0.19',
42 'MooseX::StrictConstructor' => '0.07',
43 'MooseX::Params::Validate' => '0.05',
45 'MooseX::Types' => '0.19',
49 for my $mod ( sort keys %conflicts ) {
53 my $installed = $mod->VERSION();
54 if ( $installed le $conflicts{$mod} ) {
59 This version of Moose conflicts with the version of
60 $mod ($installed) you have installed.
62 You will need to upgrade $mod after installing
63 this version of Moose.
74 # More or less copied from Module::Build
75 return if $ENV{PERL_MM_USE_DEFAULT};
76 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));