remove unused dep HTTP::Request::AsCGI
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
9a2055d7 1use strict;
2use warnings;
807303a1 3use 5.008003;
4
5my %META = (
6 name => 'Catalyst-Runtime',
7 license => 'perl_5',
8 prereqs => {
9 configure => { requires => {
10 'ExtUtils::MakeMaker' => 0,
11 } },
12 build => { requires => {
13 } },
14 test => {
15 requires => {
16 'Test::Fatal' => 0,
17 'Test::More' => '0.88',
18 'HTTP::Request::Common' => 0,
19 'IO::Scalar' => 0,
20 'HTTP::Status' => 0,
21 },
22 },
23 runtime => {
24 requires => {
25 'perl' => 5.008003,
26 'List::Util' => '1.45',
27 'namespace::autoclean' => '0.28',
28 'namespace::clean' => '0.23',
29 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903',
30 'Class::Load' => '0.12',
31 'Data::OptList' => 0,
32 'Moose' => '1.03',
33 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable' => '0.24',
34 'MooseX::Role::WithOverloading' => '0.09',
35 'Carp' => '1.25',
36 'Class::C3::Adopt::NEXT' => '0.07',
37 'CGI::Simple::Cookie' => '1.109',
38 'Data::Dump' => 0,
39 'Data::OptList' => 0,
40 'HTML::Entities' => 0,
41 'HTML::HeadParser' => 0,
42 'HTTP::Body' => '1.22',
43 'HTTP::Headers' => '1.64',
44 'HTTP::Request' => '5.814',
45 'HTTP::Response' => '5.813',
807303a1 46 'Module::Pluggable' => '4.7',
47 'Path::Class' => '0.09',
48 'Scalar::Util' => 0,
49 'Sub::Exporter' => 0,
50 'Text::SimpleTable' => '0.03',
51 'Time::HiRes' => 0,
52 'Tree::Simple' => '1.15',
53 'Tree::Simple::Visitor::FindByPath' => 0,
54 'Try::Tiny' => '0.17',
55 'Safe::Isa' => 0,
56 'Task::Weaken' => 0,
57 'Text::Balanced' => 0, # core in 5.8.x but mentioned for completeness
58 'MRO::Compat' => 0,
59 'MooseX::Getopt' => '0.48',
60 'String::RewritePrefix' => '0.004', # Catalyst::Utils::resolve_namespace
61 'Devel::InnerPackage' => 0, # No longer core in blead
62 'Plack' => '0.9991', # IIS6+7 fix middleware
63 'Plack::Middleware::ReverseProxy' => '0.04',
64 'Plack::Test::ExternalServer' => 0,
807303a1 65 'Encode' => '2.49',
66 'LWP' => '5.837', # LWP had unicode fail in 5.8.26
67 'URI' => '1.65',
68 'URI::ws' => '0.03',
69 'JSON::MaybeXS' => '1.000000',
70 'Stream::Buffered' => 0,
71 'Hash::MultiValue' => 0,
72 'Plack::Request::Upload' => 0,
73 'CGI::Struct' => 0,
74 "Plack::Middleware::Conditional" => 0,
75 "Plack::Middleware::IIS6ScriptNameFix" => 0,
76 "Plack::Middleware::IIS7KeepAliveFix" => 0,
77 "Plack::Middleware::LighttpdScriptNameFix" => 0,
78 "Plack::Middleware::ContentLength" => 0,
79 "Plack::Middleware::Head" => 0,
80 "Plack::Middleware::HTTPExceptions" => 0,
81 "Plack::Middleware::FixMissingBodyInRedirect" => '0.09',
82 "Plack::Middleware::MethodOverride" => '0.12',
83 "Plack::Middleware::RemoveRedundantBody" => '0.03',
84 },
85 },
86 develop => {
87 requires => {
807303a1 88 'Test::Simple' => '0.88',
89 'CatalystX::LeakChecker' => '0.05',
90 'Catalyst::Devel' => '1.0', # For http server test
91 'Catalyst::Engine::PSGI' => 0,
92 'Test::WWW::Mechanize::Catalyst' => '0.51',
93 'Test::TCP' => '2.00', # ditto, ships Net::EmptyPort
c2eac008 94 'File::Copy::Recursive' => '0.40',
807303a1 95 'Starman' => 0,
96 'MooseX::Daemonize' => 0,
97 'Test::NoTabs' => 0,
98 'Test::Pod' => 0,
99 'Test::Pod::Coverage' => 0,
100 'Test::Spelling' => 0,
101 'Pod::Coverage::TrustPod' => 0,
102 'Catalyst::Plugin::Params::Nested' => 0,
103 'Catalyst::Plugin::ConfigLoader' => 0,
104 },
105 },
106 },
107 resources => {
108 repository => {
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',
112 type => 'git',
113 },
114 x_IRC => 'irc://irc.perl.org/#catalyst',
115 bugtracker => {
116 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Runtime',
117 mailto => 'bug-Catalyst-Runtime@rt.cpan.org',
118 },
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/',
122 },
123 no_index => {
124 directory => [ 't', 'xt' ]
125 },
126 x_breaks => {
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.
161 },
162 x_authority => 'cpan:MSTROUT',
163);
212ba4ee 164
c2eac008 165my $tests = 't/*.t t/aggregate/*.t';
a06394ac 166
807303a1 167my %MM_ARGS = (
168 test => { TESTS => $tests },
169 EXE_FILES => [ glob 'script/*.pl' ],
170 PREREQ_PM => {
171 (eval { require Moose; Moose->VERSION('2.1300') } ? () : (
172 'MooseX::Role::WithOverloading' => '0.09'
173 )),
174 },
175);
a06394ac 176
807303a1 177## BOILERPLATE ###############################################################
178require ExtUtils::MakeMaker;
179(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
180
181# have to do this since old EUMM dev releases miss the eval $VERSION line
182my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
183my $mymeta = $eumm_version >= 6.57_02;
184my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
185
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
193 if $mymeta_broken;
194$MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
195 unless -f 'META.yml';
196
197for (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} || {}},
202 };
203 defined $r->{$_} or delete $r->{$_} for keys %$r;
de925c79 204}
205
807303a1 206$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
697a1b1a 207
807303a1 208delete $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;
214delete $MM_ARGS{CONFIGURE_REQUIRES}
215 if $eumm_version < 6.51_03;
697a1b1a 216
807303a1 217ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
218## END BOILERPLATE ###########################################################
614f3ad6 219
614f3ad6 220print <<"EOF";
221
222 Important:
a5b5152b 223
0187a79d 224 This library is for running Catalyst applications.
225
341d40d1 226 For development and use of catalyst.pl and myapp_create.pl, make sure
227 you also install the development tools package Catalyst::Devel.
f63c03e4 228
6bc14aef 229 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
ec0939b9 230 perl -MCPAN -e 'install Catalyst::Devel' # or
231 cpanm Catalyst::Devel
6bc14aef 232
f4c1afd4 233 To get some commonly used plugins, as well as the TT view and DBIC
6bc14aef 234 model, install Task::Catalyst in the same way.
a5b5152b 235
a5b5152b 236 Have fun!
614f3ad6 237EOF