root/lang/perl/HTTP-Engine/trunk/Makefile.PL @ 26174

Revision 26174, 2.3 kB (checked in by tokuhirom, 6 years ago)

merge minimalist branch. this branch works well and helpful for cgi

Line 
1use inc::Module::Install;
2BEGIN
3{
4    eval {
5        die "not testing mod_perl" unless $ENV{TEST_MODPERL};
6        require mod_perl2;
7        require Apache::Test;
8    };
9    {
10        no strict 'refs';
11        *HAVE_MP = $@ ? sub { 0 } : sub { 1 };
12    }
13}
14
15if (HAVE_MP) {
16    require Apache::TestMM;
17    Apache::TestMM->import(qw(clean test));
18}
19
20{
21    no warnings 'redefine';
22    *recommends_hack = $Module::Install::VERSION > 0.70 ?
23        sub { recommends(@_); $_[0] } :
24        \&recommends;
25}
26
27
28name 'HTTP-Engine';
29all_from 'lib/HTTP/Engine.pm';
30
31requires 'Mouse'         => '0.11';
32requires 'Class::Method::Modifiers' => 0; # for 'before / after method modifiers'
33requires 'Scalar::Util'  => 1.19;
34
35requires 'File::Copy'       => 0;
36requires 'File::Spec::Unix' => 3.2701;
37
38requires 'CGI::Simple::Cookie' => 1.103;
39requires 'HTTP::Body'          => '1.05';
40requires 'HTTP::Headers::Fast' => 0.01;
41requires 'URI'                 => 1.36;
42
43# prevent tests from failing with HTTP::Server::Simple is present, but
44# but the version is too old. It has no real further dependencies anyway.
45requires 'HTTP::Server::Simple' => 0.35;
46
47features(
48    'Interface::FCGI' => [
49        -default => 0,
50        recommends_hack('FCGI' => 0.67),
51    ],
52
53    'Interface::ServerSimple' => [
54        -default => 0,
55        recommends_hack('HTTP::Server::Simple' => 0.34),
56    ],
57
58    'Interface::Standalone' => [
59        -default => 0,
60        recommends_hack('Errno' => 1.0901),
61        recommends_hack('IO::Socket::INET' => 1.31),
62    ],
63
64    'Interface::Test' => [
65        -default => 0,
66        recommends_hack('IO::Scalar' => 2.110),
67    ],
68
69    'Interface::POE' => [
70        -default => 0,
71        recommends_hack('POE' => '1.0003'),
72        recommends_hack('POE::Filter::HTTPD' => 1.2387),
73    ],
74);
75
76if (HAVE_MP) {
77    Apache::TestMM::filter_args();
78    Apache::TestMM::generate_script('t/TEST');
79    tests('t/*.t t/*/*.t t/modperl/basic.t t/modperl/whole.t');
80} else {
81    tests('t/*.t t/*/*.t ');
82}
83
84build_requires 'YAML'; # Test::Base requires this
85build_requires 'Test::More';
86build_requires 'IO::Scalar';
87build_requires 'File::Temp' => '0.20';
88build_requires 'HTTP::Request::AsCGI';
89build_requires 'Test::TCP' => 0.02;
90build_requires 'IO::Socket' => 1.30;
91build_requires 'IO::File' => 1.14;
92
93use_test_base;
94auto_include;
95WriteAll;
96
Note: See TracBrowser for help on using the browser.