Non-inlined trigger code no longer passes the meta-attr object, and updated the docs...
[gitmo/Moose.git] / Makefile.PL
CommitLineData
db90f764 1use strict;
2use warnings;
47b19570 3use inc::Module::Install;
4a8035cf 4use 5.008001;
db90f764 5
0161e7d4 6check_conflicts();
7
db90f764 8name 'Moose';
4a8035cf 9perl_version '5.008001';
db90f764 10all_from 'lib/Moose.pm';
11license 'perl';
12
23f46d73 13requires 'Scalar::Util' => '1.19';
db90f764 14requires 'Carp';
dc00669f 15requires 'Class::MOP' => '0.77';
e8d6f353 16requires 'List::MoreUtils' => '0.12';
c373cc5c 17requires 'Sub::Exporter' => '0.972';
477f1f61 18requires 'Task::Weaken' => '0';
25374f01 19
3d28060b 20test_requires 'Test::More' => '0.77';
21test_requires 'Test::Exception' => '0.21';
db90f764 22
6fb58c0d 23tests_recursive();
29772efc 24
db90f764 25WriteAll();
26
0161e7d4 27# Use the cpan-smolder-stable script in the Moose svn root to figure
28# out what on CPAN will break with the latest Moose, then update this
29# before a release.
30sub check_conflicts {
31 my %conflicts = (
74a90eea 32 'MooseX::Singleton' => '0.12',
0161e7d4 33 'MooseX::Params::Validate' => '0.05',
74a90eea 34 'Fey::ORM' => '0.12',
0161e7d4 35 );
36
37 my $found = 0;
38 for my $mod ( sort keys %conflicts ) {
39 eval "require $mod";
40 next if $@;
41
42 my $installed = $mod->VERSION();
43 if ( $installed le $conflicts{$mod} ) {
44
45 print <<"EOF";
46
47***
48 This version of Moose conflicts with the version of
49 $mod ($installed) you have installed.
50
51 You will need to upgrade $mod after installing
52 this version of Moose.
53***
54
55EOF
56
57 $found = 1;
58 }
59 }
60
7aaa2004 61 return unless $found;
62
0161e7d4 63 # More or less copied from Module::Build
64 return if $ENV{PERL_MM_USE_DEFAULT};
65 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
66
7aaa2004 67 sleep 4;
0161e7d4 68}