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>';
26 authority('cpan:MSTROUT');
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 'Data::OptList';
35 requires 'Moose' => '1.03';
36 requires 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable' => '0.24';
37 requires 'MooseX::Role::WithOverloading' => '0.09';
39 requires 'Class::C3::Adopt::NEXT' => '0.07';
40 requires 'CGI::Simple::Cookie' => '1.109';
41 requires 'Data::Dump';
42 requires 'Data::OptList';
43 requires 'HTML::Entities';
44 requires 'HTML::HeadParser';
45 requires 'HTTP::Body' => '1.06'; # ->cleanup(1)
46 requires 'HTTP::Headers' => '1.64';
47 requires 'HTTP::Request' => '5.814';
48 requires 'HTTP::Response' => '5.813';
49 requires 'HTTP::Request::AsCGI' => '1.0';
50 requires 'Module::Pluggable' => '4.7';
51 requires 'Path::Class' => '0.09';
52 requires 'Scalar::Util';
53 requires 'Sub::Exporter';
54 requires 'Text::SimpleTable' => '0.03';
55 requires 'Time::HiRes';
56 requires 'Tree::Simple' => '1.15';
57 requires 'Tree::Simple::Visitor::FindByPath';
58 requires 'Try::Tiny' => '0.17';
60 requires 'Task::Weaken';
61 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
62 requires 'MRO::Compat';
63 requires 'MooseX::Getopt' => '0.48';
64 requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
65 requires 'Devel::InnerPackage'; # No longer core in blead
66 requires 'Plack' => '0.9991'; # IIS6+7 fix middleware
67 requires 'Plack::Middleware::ReverseProxy' => '0.04';
68 requires 'Plack::Test::ExternalServer';
69 requires 'Class::Data::Inheritable';
70 requires 'Encode' => '2.49';
71 requires 'LWP' => '5.837'; # LWP had unicode fail in 5.8.26
72 requires 'URI' => '1.36';
73 requires 'JSON::MaybeXS' => '1.000000';
74 requires 'Stream::Buffered';
75 requires 'Hash::MultiValue';
76 requires 'Plack::Request::Upload';
77 requires 'CGI::Struct';
78 requires "Plack::Middleware::Conditional";
79 requires "Plack::Middleware::IIS6ScriptNameFix";
80 requires "Plack::Middleware::IIS7KeepAliveFix";
81 requires "Plack::Middleware::LighttpdScriptNameFix";
82 requires "Plack::Middleware::ContentLength";
83 requires "Plack::Middleware::Head";
84 requires "Plack::Middleware::HTTPExceptions";
85 requires "Plack::Middleware::FixMissingBodyInRedirect" => '0.09';
86 requires "Plack::Middleware::MethodOverride";
87 requires "Plack::Middleware::RemoveRedundantBody" => '0.03';
89 test_requires 'Test::Fatal';
90 test_requires 'Test::More' => '0.88';
91 test_requires 'Data::Dump';
92 test_requires 'HTTP::Request::Common';
93 test_requires 'IO::Scalar';
94 test_requires 'HTTP::Status';
95 test_requires 'JSON::MaybeXS';
97 # see also cpanfile for authordeps -- install via
98 # cpanm --installdeps --with-develop .
100 # aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
102 if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.364')) {
103 push(@author_requires, 'Test::Aggregate', '0.364');
104 push(@author_requires, 'Test::Simple', '0.88');
105 open my $fh, '>', '.aggregating';
108 unlink '.aggregating';
109 tests 't/*.t t/aggregate/*.t';
112 push(@author_requires, 'CatalystX::LeakChecker', '0.05');
113 push(@author_requires, 'Catalyst::Devel', '1.0'); # For http server test
114 push(@author_requires, 'Test::WWW::Mechanize::Catalyst', '0.51');
115 push(@author_requires, 'Test::TCP', '2.00'); # ditto, ships Net::EmptyPort
117 author_tests('t/author');
121 File::Copy::Recursive
122 Test::Without::Module
129 Pod::Coverage::TrustPod
130 Catalyst::Plugin::Params::Nested
131 Catalyst::Plugin::ConfigLoader
134 if ($Module::Install::AUTHOR) {
135 darwin_check_no_resource_forks();
139 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
140 'IRC' => 'irc://irc.perl.org/#catalyst',
141 'license', => 'http://dev.perl.org/licenses/',
142 'homepage', => 'http://dev.catalyst.perl.org/',
143 # r/w: catagits@git.shadowcat.co.uk:Catalyst-Runtime.git
144 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
147 install_script glob('script/*.pl');
155 This library is for running Catalyst applications.
157 For development and use of catalyst.pl and myapp_create.pl, make sure
158 you also install the development tools package Catalyst::Devel.
160 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
161 perl -MCPAN -e 'install Catalyst::Devel' # or
162 cpanm Catalyst::Devel
164 To get some commonly used plugins, as well as the TT view and DBIC
165 model, install Task::Catalyst in the same way.
170 # NOTE - This is the version number of the _incompatible_ code,
171 # not the version number of the fixed version.
173 'Catalyst::Plugin::SubRequest' => '0.14',
174 'Catalyst::Model::Akismet' => '0.02',
175 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
176 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
177 # should have been a core fix.
178 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
179 'Catalyst::Plugin::Authentication' => '0.10010', # _config accessor in ::Credential::Password
180 'Catalyst::Authentication::Credential::HTTP' => '1.009',
181 'Catalyst::Plugin::Session::Store::File' => '0.16',
182 'Catalyst::Plugin::Session' => '0.21',
183 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
184 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
185 'Catalyst::Controller::AllowDisable' => '0.03',
186 'Reaction' => '0.001999',
187 'Catalyst::Plugin::Upload::Image::Magick' => '0.03',
188 'Catalyst::Plugin::ConfigLoader' => '0.22', # Older versions work but
189 # throw Data::Visitor warns
190 'Catalyst::Devel' => '1.19',
191 'Catalyst::Plugin::SmartURI' => '0.032',
192 'CatalystX::CRUD' => '0.37',
193 'Catalyst::Action::RenderView' => '0.07',
194 'Catalyst::Plugin::DebugCookie' => '0.999002',
195 'Catalyst::Plugin::Authentication' => '0.100091',
196 'CatalystX::Imports' => '0.03',
197 'Catalyst::Plugin::HashedCookies' => '1.03',
198 'Catalyst::Action::REST' => '0.67',
199 'CatalystX::CRUD' => '0.42',
200 'CatalystX::CRUD::Model::RDBO' => '0.20',
201 'Catalyst::View::Mason' => '0.17',
202 # Note these are not actually needed - they fail tests against the
203 # new version, but still work fine..
204 # 'Catalyst::ActionRole::ACL' => '0.05',
205 # 'Catalyst::Plugin::Session::Store::DBIC' => '0.11',
206 'Test::WWW::Mechanize::Catalyst' => '0.53', # Dep warnings unless upgraded.
208 check_conflicts(%conflicts);
210 # End of script, helper functions below.
212 sub darwin_check_no_resource_forks {
213 if ($^O eq 'darwin') {
214 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
217 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
218 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
219 my $attr = $osx_ver =~ /^10.(5|6|7|8)/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
221 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
222 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
223 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });