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