just use perl_version() to specify the min. required version of perl
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
c55f01aa 1use inc::Module::Install 0.64;
022d1311 2
551846d1 3perl_version '5.008001';
0ba80bce 4
341d40d1 5name 'Catalyst-Runtime';
6all_from 'lib/Catalyst/Runtime.pm';
24b3262a 7
9ce44430 8requires 'Carp';
24b3262a 9requires 'Class::Accessor::Fast';
10requires 'Class::Data::Inheritable';
f63c03e4 11requires 'Class::Inspector' => '1.06';
fa32ac82 12requires 'CGI::Simple::Cookie';
f63c03e4 13requires 'Data::Dump';
24b3262a 14requires 'File::Modified';
15requires 'HTML::Entities';
5c2c224d 16requires 'HTTP::Body' => '0.9';
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';
24b3262a 23requires 'NEXT';
1e514a51 24requires 'Path::Class' => '0.09';
24b3262a 25requires 'Scalar::Util';
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
24b3262a 32
a9835938 33
de925c79 34if (-e 'inc/.author') {
35 build_requires 'Test::Perl::Critic';
5f4bcf51 36 build_requires 'Test::Pod' => 1.14;
37 build_requires 'Test::Pod::Coverage' => 1.04;
d3a85879 38
39 if ($^O eq 'darwin') {
b3f87dd0 40 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
41 chomp $osx_ver;
42
43 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
44 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
45 my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
46
47 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
48 qq{ echo "You must set the ENV variable $attr to true,"; }.
d3a85879 49 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
50 }
de925c79 51}
52
24b3262a 53install_script glob('script/*.pl');
b6395bce 54auto_install;
24b3262a 55WriteAll;
614f3ad6 56
614f3ad6 57print <<"EOF";
58
59 Important:
a5b5152b 60
0187a79d 61 This library is for running Catalyst applications.
62
341d40d1 63 For development and use of catalyst.pl and myapp_create.pl, make sure
64 you also install the development tools package Catalyst::Devel.
f63c03e4 65
6bc14aef 66 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
67 perl -MCPAN -e 'install Catalyst::Devel'
68
69 To get some commonly used plugins, as well as the TT view and DBIC
70 model, install Task::Catalyst in the same way.
a5b5152b 71
a5b5152b 72 Have fun!
614f3ad6 73EOF