Commit | Line | Data |
---|---|---|
c55f01aa | 1 | use inc::Module::Install 0.64; |
022d1311 | 2 | |
4cfa1efa | 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 | |
4cfa1efa | 9 | #from Moose port: |
10 | requires 'Moose'; #version tbd. | |
11 | requires 'MooseX::ClassAttribute'; #version tbd | |
12 | ||
24b3262a | 13 | requires 'perl' => '5.8.1'; |
9ce44430 | 14 | requires 'Carp'; |
24b3262a | 15 | requires 'Class::Accessor::Fast'; |
16 | requires 'Class::Data::Inheritable'; | |
f63c03e4 | 17 | requires 'Class::Inspector' => '1.06'; |
fa32ac82 | 18 | requires 'CGI::Simple::Cookie'; |
f63c03e4 | 19 | requires 'Data::Dump'; |
24b3262a | 20 | requires 'File::Modified'; |
21 | requires 'HTML::Entities'; | |
5c2c224d | 22 | requires 'HTTP::Body' => '0.9'; |
1e514a51 | 23 | requires 'HTTP::Headers' => '1.64'; |
24b3262a | 24 | requires 'HTTP::Request'; |
25 | requires 'HTTP::Response'; | |
ee3c41e3 | 26 | requires 'HTTP::Request::AsCGI' => '0.5'; |
24b3262a | 27 | requires 'LWP::UserAgent'; |
d8e0de58 | 28 | requires 'Module::Pluggable' => '3.01'; |
24b3262a | 29 | requires 'NEXT'; |
1e514a51 | 30 | requires 'Path::Class' => '0.09'; |
24b3262a | 31 | requires 'Scalar::Util'; |
1e514a51 | 32 | requires 'Text::SimpleTable' => '0.03'; |
24b3262a | 33 | requires 'Time::HiRes'; |
1e514a51 | 34 | requires 'Tree::Simple' => '1.15'; |
24b3262a | 35 | requires 'Tree::Simple::Visitor::FindByPath'; |
1e514a51 | 36 | requires 'URI' => '1.35'; |
ea0e58d9 | 37 | requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness |
24b3262a | 38 | |
a9835938 | 39 | |
de925c79 | 40 | if (-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 | 59 | install_script glob('script/*.pl'); |
b6395bce | 60 | auto_install; |
24b3262a | 61 | WriteAll; |
614f3ad6 | 62 | |
614f3ad6 | 63 | print <<"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 | 79 | EOF |