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