Fix pod spelling.
[gitmo/Moose.git] / Makefile.PL
CommitLineData
db90f764 1use strict;
2use warnings;
4c2de971 3use inc::Module::Install 0.91;
2e503ae9 4use Module::Install::ExtraTests;
5use Module::Install::AuthorRequires;
4a8035cf 6use 5.008001;
db90f764 7
0161e7d4 8check_conflicts();
9
db90f764 10name 'Moose';
4a8035cf 11perl_version '5.008001';
db90f764 12all_from 'lib/Moose.pm';
13license 'perl';
14
db90f764 15requires 'Carp';
1001b50a 16requires 'Class::MOP' => '0.98';
6a461fc0 17requires 'Data::OptList' => '0';
e8d6f353 18requires 'List::MoreUtils' => '0.12';
6a461fc0 19requires 'Scalar::Util' => '1.19';
091ac4b7 20requires 'Sub::Exporter' => '0.980';
9f2230e9 21requires 'Sub::Name' => '0';
6a461fc0 22requires 'Task::Weaken' => '0';
6c01c148 23requires 'Try::Tiny' => '0.02';
25374f01 24
87f55e33 25test_requires 'Test::More' => '0.88';
c0026a42 26test_requires 'Test::Exception' => '0.27';
db90f764 27
2e503ae9 28author_requires 'Test::Inline';
29author_requires 'File::Find::Rule';
30author_requires 'Module::Info';
d68b5280 31author_requires 'Test::Spelling';
32author_requires 'Test::Pod::Coverage';
33author_requires 'Test::NoTabs';
2e503ae9 34
c37b4474 35if ( $Module::Install::AUTHOR || $ENV{IS_MAINTAINER} ) {
c3ad9761 36 system( $^X, 'author/extract-inline-tests' );
de341d84 37}
38
c93fa627 39extra_tests();
6fb58c0d 40tests_recursive();
29772efc 41
db90f764 42WriteAll();
43
0161e7d4 44# Use the cpan-smolder-stable script in the Moose svn root to figure
45# out what on CPAN will break with the latest Moose, then update this
46# before a release.
47sub check_conflicts {
48 my %conflicts = (
3e8684a5 49 'Fey::ORM' => '0.23',
6428e28b 50 'Catalyst' => '5.80017',
3e8684a5 51 'MooseX::Aliases' => '0.07',
52 'MooseX::AttributeHelpers' => '0.22',
92056b59 53 'MooseX::Attribute::Prototype' => '0.10',
3e8684a5 54 'MooseX::ClassAttribute' => '0.09',
55 'MooseX::MethodAttributes' => '0.18',
56 'MooseX::NonMoose' => '0.05',
57 'MooseX::Params::Validate' => '0.05',
58 'MooseX::Role::Cmd' => '0.06',
59 'MooseX::Role::WithOverloading' => '0.04',
60 'MooseX::Singleton' => '0.19',
61 'MooseX::StrictConstructor' => '0.07',
62 'MooseX::Types' => '0.19',
63 'namespace::autoclean' => '0.08',
0161e7d4 64 );
65
66 my $found = 0;
67 for my $mod ( sort keys %conflicts ) {
68 eval "require $mod";
69 next if $@;
70
71 my $installed = $mod->VERSION();
72 if ( $installed le $conflicts{$mod} ) {
73
74 print <<"EOF";
75
76***
77 This version of Moose conflicts with the version of
78 $mod ($installed) you have installed.
79
80 You will need to upgrade $mod after installing
81 this version of Moose.
82***
83
84EOF
85
86 $found = 1;
87 }
88 }
89
7aaa2004 90 return unless $found;
91
0161e7d4 92 # More or less copied from Module::Build
93 return if $ENV{PERL_MM_USE_DEFAULT};
94 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
95
7aaa2004 96 sleep 4;
0161e7d4 97}