6 name => 'Catalyst-Runtime',
9 configure => { requires => {
10 'ExtUtils::MakeMaker' => 0,
12 build => { requires => {
17 'Test::More' => '0.88',
18 'HTTP::Request::Common' => 0,
25 'List::Util' => '1.45',
26 'namespace::clean' => '0.23',
27 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903',
28 'Class::Load' => '0.12',
30 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable' => '0.24',
31 'MooseX::Role::WithOverloading' => '0.09',
33 'Class::C3::Adopt::NEXT' => '0.07',
34 'CGI::Simple::Cookie' => '1.109',
37 'HTML::Entities' => 0,
38 'HTML::HeadParser' => 0,
39 'HTTP::Body' => '1.22',
40 'HTTP::Headers' => '1.64',
41 'HTTP::Request' => '5.814',
42 'HTTP::Response' => '5.813',
43 'Module::Pluggable' => '4.7',
44 'Path::Class' => '0.09',
47 'Text::SimpleTable' => '0.03',
49 'Tree::Simple' => '1.15',
50 'Tree::Simple::Visitor::FindByUID' => 0,
51 'Try::Tiny' => '0.17',
54 'Text::Balanced' => 0, # core in 5.8.x but mentioned for completeness
56 'MooseX::Getopt' => '0.48',
57 'String::RewritePrefix' => '0.004', # Catalyst::Utils::resolve_namespace
58 'Devel::InnerPackage' => 0, # No longer core in blead
59 'Plack' => '0.9991', # IIS6+7 fix middleware
60 'Plack::Middleware::ReverseProxy' => '0.04',
61 'Plack::Test::ExternalServer' => 0,
63 'LWP' => '5.837', # LWP had unicode fail in 5.8.26
66 'JSON::MaybeXS' => '1.000000',
67 'Stream::Buffered' => 0,
68 'Hash::MultiValue' => 0,
69 'Plack::Request::Upload' => 0,
71 "Plack::Middleware::Conditional" => 0,
72 "Plack::Middleware::IIS6ScriptNameFix" => 0,
73 "Plack::Middleware::IIS7KeepAliveFix" => 0,
74 "Plack::Middleware::LighttpdScriptNameFix" => 0,
75 "Plack::Middleware::ContentLength" => 0,
76 "Plack::Middleware::Head" => 0,
77 "Plack::Middleware::HTTPExceptions" => 0,
78 "Plack::Middleware::FixMissingBodyInRedirect" => '0.09',
79 "Plack::Middleware::MethodOverride" => '0.12',
80 "Plack::Middleware::RemoveRedundantBody" => '0.03',
81 'PerlIO::utf8_strict' => 0,
86 'CatalystX::LeakChecker' => '0.05',
87 'Catalyst::Devel' => '1.0', # For http server test
88 'Test::WWW::Mechanize::Catalyst' => '0.51',
89 'Test::TCP' => '2.00', # ditto, ships Net::EmptyPort
90 'File::Copy::Recursive' => '0.40',
92 'MooseX::Daemonize' => 0,
95 'Test::Pod::Coverage' => 0,
96 'Test::Spelling' => 0,
97 'Pod::Coverage::TrustPod' => 0,
98 'Catalyst::Plugin::Params::Nested' => 0,
99 'Catalyst::Plugin::ConfigLoader' => 0,
100 'Compress::Zlib' => 0,
101 'Catalyst::Action::REST' => 0,
103 'Proc::ProcessTable' => 0,
109 # r/w: catagits@git.shadowcat.co.uk:Catalyst-Runtime.git
110 url => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
111 web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Runtime.git;a=summary',
114 x_IRC => 'irc://irc.perl.org/#catalyst',
116 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Runtime',
117 mailto => 'bug-Catalyst-Runtime@rt.cpan.org',
119 license => [ 'http://dev.perl.org/licenses/' ],
120 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
121 homepage => 'http://dev.catalyst.perl.org/',
124 directory => [ 't', 'xt' ]
127 'Catalyst::Plugin::SubRequest' => '<= 0.14',
128 'Catalyst::Model::Akismet' => '<= 0.02',
129 'Catalyst::Component::ACCEPT_CONTEXT' => '<= 0.06',
130 'Catalyst::Plugin::ENV' => 0, # This plugin is just stupid, full stop
131 # should have been a core fix.
132 'Catalyst::Plugin::Unicode::Encoding' => '<= 0.2',
133 'Catalyst::Plugin::Authentication' => '<= 0.10010', # _config accessor in ::Credential::Password
134 'Catalyst::Authentication::Credential::HTTP' => '<= 1.009',
135 'Catalyst::Plugin::Session::Store::File' => '<= 0.16',
136 'Catalyst::Plugin::Session' => '<= 0.21',
137 'Catalyst::Plugin::Session::State::Cookie' => '<= 0.10',
138 'Catalyst::Plugin::Session::Store::FastMmap' => '<= 0.09',
139 'Catalyst::Controller::AllowDisable' => '<= 0.03',
140 'Reaction' => '<= 0.001999',
141 'Catalyst::Plugin::Upload::Image::Magick' => '<= 0.03',
142 'Catalyst::Plugin::ConfigLoader' => '<= 0.22', # Older versions work but
143 # throw Data::Visitor warns
144 'Catalyst::Devel' => '<= 1.19',
145 'Catalyst::Plugin::SmartURI' => '<= 0.032',
146 'CatalystX::CRUD' => '<= 0.37',
147 'Catalyst::Action::RenderView' => '<= 0.07',
148 'Catalyst::Plugin::DebugCookie' => '<= 0.999002',
149 'Catalyst::Plugin::Authentication' => '<= 0.100091',
150 'CatalystX::Imports' => '<= 0.03',
151 'Catalyst::Plugin::HashedCookies' => '<= 1.03',
152 'Catalyst::Action::REST' => '<= 0.67',
153 'CatalystX::CRUD' => '<= 0.42',
154 'CatalystX::CRUD::Model::RDBO' => '<= 0.20',
155 'Catalyst::View::Mason' => '<= 0.17',
156 # Note these are not actually needed - they fail tests against the
157 # new version, but still work fine..
158 # 'Catalyst::ActionRole::ACL' => '<= 0.05',
159 # 'Catalyst::Plugin::Session::Store::DBIC' => '<= 0.11',
160 'Test::WWW::Mechanize::Catalyst' => '<= 0.53', # Dep warnings unless upgraded.
162 x_authority => 'cpan:MSTROUT',
165 my $tests = 't/*.t t/aggregate/*.t';
168 test => { TESTS => $tests },
169 EXE_FILES => [ glob 'script/*.pl' ],
171 (eval { require Moose; Moose->VERSION('2.1300') } ? () : (
172 'MooseX::Role::WithOverloading' => '0.09'
177 ## BOILERPLATE ###############################################################
178 require ExtUtils::MakeMaker;
179 (do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
181 # have to do this since old EUMM dev releases miss the eval $VERSION line
182 my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
183 my $mymeta = $eumm_version >= 6.57_02;
184 my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
186 ($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
187 ($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
188 $META{license} = [ $META{license} ]
189 if $META{license} && !ref $META{license};
190 $MM_ARGS{LICENSE} = $META{license}[0]
191 if $META{license} && $eumm_version >= 6.30;
192 $MM_ARGS{NO_MYMETA} = 1
194 $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
195 unless -f 'META.yml';
197 for (qw(configure build test runtime)) {
198 my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
199 my $r = $MM_ARGS{$key} = {
200 %{$META{prereqs}{$_}{requires} || {}},
201 %{delete $MM_ARGS{$key} || {}},
203 defined $r->{$_} or delete $r->{$_} for keys %$r;
206 $MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
208 delete $MM_ARGS{MIN_PERL_VERSION}
209 if $eumm_version < 6.47_01;
210 $MM_ARGS{BUILD_REQUIRES} = {%{$MM_ARGS{BUILD_REQUIRES}}, %{delete $MM_ARGS{TEST_REQUIRES}}}
211 if $eumm_version < 6.63_03;
212 $MM_ARGS{PREREQ_PM} = {%{$MM_ARGS{PREREQ_PM}}, %{delete $MM_ARGS{BUILD_REQUIRES}}}
213 if $eumm_version < 6.55_01;
214 delete $MM_ARGS{CONFIGURE_REQUIRES}
215 if $eumm_version < 6.51_03;
217 ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
218 ## END BOILERPLATE ###########################################################
224 This library is for running Catalyst applications.
226 For development and use of catalyst.pl and myapp_create.pl, make sure
227 you also install the development tools package Catalyst::Devel.
229 perl -MCPAN -e 'install Catalyst::Devel' # or
230 cpanm Catalyst::Devel
232 To get some commonly used plugins, as well as the TT view and DBIC
233 model, install Task::Catalyst in the same way.