Fix a comment in the typo
[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';
7e9900b6 15requires 'Class::MOP' => '0.77_01';
e8d6f353 16requires 'List::MoreUtils' => '0.12';
c373cc5c 17requires 'Sub::Exporter' => '0.972';
477f1f61 18requires 'Task::Weaken' => '0';
28422aa4 19requires 'Data::OptList' => '0';
25374f01 20
3d28060b 21test_requires 'Test::More' => '0.77';
22test_requires 'Test::Exception' => '0.21';
db90f764 23
de341d84 24if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) {
c3ad9761 25 system( $^X, 'author/extract-inline-tests' );
de341d84 26}
27
6fb58c0d 28tests_recursive();
29772efc 29
db90f764 30WriteAll();
31
0161e7d4 32# Use the cpan-smolder-stable script in the Moose svn root to figure
33# out what on CPAN will break with the latest Moose, then update this
34# before a release.
35sub check_conflicts {
36 my %conflicts = (
74a90eea 37 'MooseX::Singleton' => '0.12',
0161e7d4 38 'MooseX::Params::Validate' => '0.05',
74a90eea 39 'Fey::ORM' => '0.12',
cca3dd5c 40 'MooseX::AttributeHelpers' => '0.14',
0161e7d4 41 );
42
43 my $found = 0;
44 for my $mod ( sort keys %conflicts ) {
45 eval "require $mod";
46 next if $@;
47
48 my $installed = $mod->VERSION();
49 if ( $installed le $conflicts{$mod} ) {
50
51 print <<"EOF";
52
53***
54 This version of Moose conflicts with the version of
55 $mod ($installed) you have installed.
56
57 You will need to upgrade $mod after installing
58 this version of Moose.
59***
60
61EOF
62
63 $found = 1;
64 }
65 }
66
7aaa2004 67 return unless $found;
68
0161e7d4 69 # More or less copied from Module::Build
70 return if $ENV{PERL_MM_USE_DEFAULT};
71 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
72
7aaa2004 73 sleep 4;
0161e7d4 74}