3 use inc::Module::Install 0.91;
4 # Ensure that these get used - yes, M::I loads them for us, but if you're
5 # in author mode and don't have them installed, then the error is tres
7 if ($Module::Install::AUTHOR) { # We could just use them, but telling
8 my @fail; # people the set of things they need nicer
9 foreach my $module (qw/
10 Module::Install::AuthorRequires
11 Module::Install::CheckConflicts
12 Module::Install::AuthorTests
13 Module::Install::Authority
16 unless eval qq{require $module; 1;};
18 die("Module::Install extensions failed, not installed? \n"
19 . join("\n", map { " $_" } @fail) . "\n") if @fail;
22 perl_version '5.008003';
24 name 'Catalyst-Runtime';
25 author 'Sebastian Riedel <sri@cpan.org>';
27 all_from 'lib/Catalyst/Runtime.pm';
29 requires 'List::MoreUtils';
30 requires 'namespace::autoclean' => '0.09';
31 requires 'namespace::clean' => '0.23';
32 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903';
33 requires 'Class::Load' => '0.12';
34 requires 'Class::MOP' => '0.95';
35 requires 'Data::OptList';
36 requires 'Moose' => '1.03';
37 requires 'MooseX::MethodAttributes::Inheritable' => '0.24';
38 requires 'MooseX::Role::WithOverloading' => '0.09';
40 requires 'Class::C3::Adopt::NEXT' => '0.07';
41 requires 'CGI::Simple::Cookie' => '1.109';
42 requires 'Data::Dump';
43 requires 'Data::OptList';
44 requires 'HTML::Entities';
45 requires 'HTML::HeadParser';
46 requires 'HTTP::Body' => '1.06'; # ->cleanup(1)
47 requires 'HTTP::Headers' => '1.64';
48 requires 'HTTP::Request' => '5.814';
49 requires 'HTTP::Response' => '5.813';
50 requires 'HTTP::Request::AsCGI' => '1.0';
51 requires 'LWP::UserAgent';
52 requires 'Module::Pluggable' => '3.9';
53 requires 'Path::Class' => '0.09';
54 requires 'Scalar::Util';
55 requires 'Sub::Exporter';
56 requires 'Text::SimpleTable' => '0.03';
57 requires 'Time::HiRes';
58 requires 'Tree::Simple' => '1.15';
59 requires 'Tree::Simple::Visitor::FindByPath';
62 requires 'URI' => '1.35';
63 requires 'Task::Weaken';
64 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
65 requires 'MRO::Compat';
66 requires 'MooseX::Getopt' => '0.30';
67 requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
68 requires 'Plack' => '0.9991'; # IIS6+7 fix middleware
69 requires 'Plack::Middleware::ReverseProxy' => '0.04';
70 requires 'Plack::Test::ExternalServer';
72 test_requires 'Class::Data::Inheritable';
73 test_requires 'Test::Exception';
74 test_requires 'Test::More' => '0.88';
75 test_requires 'Data::Dump';
76 test_requires 'HTTP::Request::Common';
78 # aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
80 if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.364')) {
81 push(@author_requires, 'Test::Aggregate', '0.364');
82 push(@author_requires, 'Test::Simple', '0.88');
83 open my $fh, '>', '.aggregating';
86 unlink '.aggregating';
87 tests 't/*.t t/aggregate/*.t';
90 push(@author_requires, 'CatalystX::LeakChecker', '0.05');
91 push(@author_requires, 'Catalyst::Devel', '1.0'); # For http server test
93 author_tests('t/author');
98 Catalyst::Engine::PSGI
106 Pod::Coverage::TrustPod
109 if ($Module::Install::AUTHOR) {
110 darwin_check_no_resource_forks();
114 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
115 'IRC' => 'irc://irc.perl.org/#catalyst',
116 'license', => 'http://dev.perl.org/licenses/',
117 'homepage', => 'http://dev.catalyst.perl.org/',
118 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
121 install_script glob('script/*.pl');
129 This library is for running Catalyst applications.
131 For development and use of catalyst.pl and myapp_create.pl, make sure
132 you also install the development tools package Catalyst::Devel.
134 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
135 perl -MCPAN -e 'install Catalyst::Devel' # or
136 cpanm Catalyst::Devel
138 To get some commonly used plugins, as well as the TT view and DBIC
139 model, install Task::Catalyst in the same way.
144 # NOTE - This is the version number of the _incompatible_ code,
145 # not the version number of the fixed version.
147 'Catalyst::Plugin::SubRequest' => '0.14',
148 'Catalyst::Model::Akismet' => '0.02',
149 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
150 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
151 # should have been a core fix.
152 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
153 'Catalyst::Plugin::Authentication' => '0.10010', # _config accessor in ::Credential::Password
154 'Catalyst::Authentication::Credential::HTTP' => '1.009',
155 'Catalyst::Plugin::Session::Store::File' => '0.16',
156 'Catalyst::Plugin::Session' => '0.21',
157 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
158 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
159 'Catalyst::Controller::AllowDisable' => '0.03',
160 'Reaction' => '0.001999',
161 'Catalyst::Plugin::Upload::Image::Magick' => '0.03',
162 'Catalyst::Plugin::ConfigLoader' => '0.22', # Older versions work but
163 # throw Data::Visitor warns
164 'Catalyst::Devel' => '1.19',
165 'Catalyst::Plugin::SmartURI' => '0.032',
166 'CatalystX::CRUD' => '0.37',
167 'Catalyst::Action::RenderView' => '0.07',
168 'Catalyst::Plugin::DebugCookie' => '0.999002',
169 'Catalyst::Plugin::Authentication' => '0.100091',
170 'CatalystX::Imports' => '0.03',
171 'Catalyst::Plugin::HashedCookies' => '1.03',
172 'Catalyst::Action::REST' => '0.67',
173 'CatalystX::CRUD' => '0.42',
174 'CatalystX::CRUD::Model::RDBO' => '0.20',
175 'Catalyst::View::Mason' => '0.17',
176 # Note these are not actually needed - they fail tests against the
177 # new version, but still work fine..
178 # 'Catalyst::ActionRole::ACL' => '0.05',
179 # 'Catalyst::Plugin::Session::Store::DBIC' => '0.11',
180 'Test::WWW::Mechanize::Catalyst' => '0.53', # Dep warnings unless upgraded.
182 check_conflicts(%conflicts);
184 # End of script, helper functions below.
186 sub darwin_check_no_resource_forks {
187 if ($^O eq 'darwin') {
188 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
191 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
192 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
193 my $attr = $osx_ver =~ /^10.(5|6|7|8)/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
195 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
196 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
197 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });