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