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

Revision 21844, 2.2 kB (checked in by tokuhirom, 6 years ago)

use latest version

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 'Moose'         => 0.59;
32requires 'MooseX::Types' => 0.04;
33requires 'Scalar::Util'  => 1.19;
34
35requires 'IO::Socket' => 1.30;
36
37requires 'File::Copy'       => 0;
38requires 'IO::File'         => 1.14;
39requires 'File::Spec::Unix' => 3.2701;
40
41requires 'CGI::Simple::Cookie' => 0.80;
42requires 'HTTP::Body'          => '1.04';
43requires 'HTTP::Headers'       => 5.810;
44requires 'URI'                 => 1.36;
45
46# prevent tests from failing with HTTP::Server::Simple is present, but
47# but the version is too old. It has no real further dependencies anyway.
48requires 'HTTP::Server::Simple' => 0.35;
49
50requires 'Test::Base'          => 0;
51
52features(
53    'Interface::FCGI' => [
54        -default => 0,
55        recommends_hack('FCGI' => 0.67),
56    ],
57
58    'Interface::ServerSimple' => [
59        -default => 0,
60        recommends_hack('HTTP::Server::Simple' => 0.34),
61    ],
62
63    'Interface::Standalone' => [
64        -default => 0,
65        recommends_hack('Errno' => 1.0901),
66    ],
67
68    'Interface::Test' => [
69        -default => 0,
70        recommends_hack('IO::Scalar' => 2.110),
71    ],
72
73    'Interface::POE' => [
74        -default => 0,
75        recommends_hack('POE' => '1.0003'),
76        recommends_hack('POE::Filter::HTTPD' => 1.2387),
77    ],
78);
79
80if (HAVE_MP) {
81    Apache::TestMM::filter_args();
82    Apache::TestMM::generate_script('t/TEST');
83    tests('t/*.t t/*/*.t t/modperl/basic.t t/modperl/whole.t');
84} else {
85    tests('t/*.t t/*/*.t ');
86}
87
88build_requires 'Test::More';
89build_requires 'IO::Scalar';
90build_requires 'File::Temp' => '0.20';
91build_requires 'HTTP::Request::AsCGI';
92build_requires 'Test::TCP' => 0.02;
93
94use_test_base;
95auto_include;
96WriteAll;
97
Note: See TracBrowser for help on using the browser.