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