Update TODO.
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
c55f01aa 1use inc::Module::Install 0.64;
022d1311 2
2f381252 3perl_version '5.008001';
0ba80bce 4
341d40d1 5name 'Catalyst-Runtime';
6all_from 'lib/Catalyst/Runtime.pm';
24b3262a 7
afb82794 8requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00300';
0833451c 9requires 'Moose' => '0.59';
9ce44430 10requires 'Carp';
fbedfd6b 11requires 'Class::MOP';
fa32ac82 12requires 'CGI::Simple::Cookie';
f63c03e4 13requires 'Data::Dump';
24b3262a 14requires 'File::Modified';
15requires 'HTML::Entities';
2f381252 16requires 'HTTP::Body' => '1.04'; # makes uploadtmp work
1e514a51 17requires 'HTTP::Headers' => '1.64';
24b3262a 18requires 'HTTP::Request';
19requires 'HTTP::Response';
ee3c41e3 20requires 'HTTP::Request::AsCGI' => '0.5';
24b3262a 21requires 'LWP::UserAgent';
d8e0de58 22requires 'Module::Pluggable' => '3.01';
1e514a51 23requires 'Path::Class' => '0.09';
24b3262a 24requires 'Scalar::Util';
64edd785 25requires 'Sub::Exporter';
1e514a51 26requires 'Text::SimpleTable' => '0.03';
24b3262a 27requires 'Time::HiRes';
1e514a51 28requires 'Tree::Simple' => '1.15';
24b3262a 29requires 'Tree::Simple::Visitor::FindByPath';
1e514a51 30requires 'URI' => '1.35';
ea0e58d9 31requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
6f1f968a 32requires 'MRO::Compat';
a9835938 33
1a667b7c 34test_requires 'NEXT';
35test_requires 'Class::Data::Inheritable';
36
bf6d41be 37if ( ( exists $ENV{AGGREGATE_TESTS} && !$ENV{AGGREGATE_TESTS})
c70c5546 38 || (!exists $ENV{AGGREGATE_TESTS} && !can_use('Test::Aggregate', '0.34_01'))) {
bf6d41be 39 tests join q{ },
40 grep { $_ ne 't/aggregate.t' }
41 map { glob } qw[t/*.t t/aggregate/*.t];
42}
42da66a9 43
de925c79 44if (-e 'inc/.author') {
1faaa3e9 45 build_requires 'Test::NoTabs';
5f4bcf51 46 build_requires 'Test::Pod' => 1.14;
47 build_requires 'Test::Pod::Coverage' => 1.04;
d3a85879 48
ac5c933b 49 if ($^O eq 'darwin') {
b3f87dd0 50 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
51 chomp $osx_ver;
52
53 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
54 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
55 my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
56
57 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
58 qq{ echo "You must set the ENV variable $attr to true,"; }.
ac5c933b 59 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
d3a85879 60 }
de925c79 61}
62
24b3262a 63install_script glob('script/*.pl');
b6395bce 64auto_install;
24b3262a 65WriteAll;
614f3ad6 66
614f3ad6 67print <<"EOF";
68
69 Important:
a5b5152b 70
0187a79d 71 This library is for running Catalyst applications.
72
341d40d1 73 For development and use of catalyst.pl and myapp_create.pl, make sure
74 you also install the development tools package Catalyst::Devel.
f63c03e4 75
6bc14aef 76 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
77 perl -MCPAN -e 'install Catalyst::Devel'
78
ac5c933b 79 To get some commonly used plugins, as well as the TT view and DBIC
6bc14aef 80 model, install Task::Catalyst in the same way.
a5b5152b 81
a5b5152b 82 Have fun!
614f3ad6 83EOF