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