forked from markstos/CGI--Application--Dispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
39 lines (36 loc) · 1.36 KB
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
my $have_apache_test = 0;
my $build_pkg = 'Module::Build';
eval "require Apache::Test";
unless( $@ ) {
$build_pkg = 'Apache::TestMB';
$have_apache_test = 1;
}
eval "require $build_pkg";
my $build = $build_pkg->new(
module_name => 'CGI::Application::Dispatch',
license => 'perl',
configure_requires => { 'Module::Build' => 0.38 },
requires => {
'perl' => '5.6.0',
# a new 'version' is only required to solve rare install problem.
# https://rt.cpan.org/Ticket/Display.html?id=56283
'version' => 0.82,
'CGI::Application' => '4.50', # For native PSGI support.
'HTTP::Exception' => 0,
'Exception::Class' => 1.2,
'Try::Tiny' => 0,
},
build_requires => {
'CGI::PSGI' => 0, # recommended by CGI::Application, but not required. We still need it at least to test with.
'Test::More' => 0,
'Test::LongString' => 0,
'Plack' => 0.9956, # really, we just depend on Plack::Test, but Plack::Test has not declared a version.
$have_apache_test ? ( 'Apache::Test' => 0 ) : (),
},
meta_merge => {
resources => {
repository => 'https://github.com/markstos/CGI--Application--Dispatch',
},
},
);
$build->create_build_script;