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