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

Revision 13359, 1.5 kB (checked in by nothingmuch, 6 years ago)

remove UNIVERSAL::require dep from Makefile.PL

Line 
1use inc::Module::Install;
2BEGIN
3{
4    eval {
5        require mod_perl2;
6        require Apache::Test;
7    };
8    {
9        no strict 'refs';
10        *HAVE_MP = $@ ? sub { 0 } : sub { 1 };
11    }
12}
13
14if (HAVE_MP) {
15    require Apache::TestMM;
16    Apache::TestMM->import(qw(clean test));
17}
18
19{
20    no warnings 'redefine';
21    *recommends_hack = $Module::Install::VERSION > 0.70 ?
22        sub { recommends(@_); $_[0] } :
23        \&recommends;
24}
25
26
27name 'HTTP-Engine';
28all_from 'lib/HTTP/Engine.pm';
29
30requires 'Moose' => 0.48;
31requires 'MooseX::Types';
32requires 'Scalar::Util';
33
34requires 'IO::Socket';
35
36requires 'File::Copy';
37requires 'IO::File';
38requires 'File::Spec::Unix';
39
40requires 'CGI::Simple::Cookie';
41requires 'HTTP::Body' => '0.9';
42requires 'HTTP::Headers';
43requires 'URI';
44
45features(
46    'Interface::FCGI' => [
47        -default => 0,
48        recommends_hack('FCGI'),
49    ],
50
51    'Interface::ServerSimple' => [
52        -default => 0,
53        recommends_hack('HTTP::Server::Simple'),
54    ],
55
56    'Interface::Standalone' => [
57        -default => 0,
58        recommends_hack('Errno'),
59    ],
60
61    'Interface::Test' => [
62        -default => 0,
63        recommends_hack('HTTP::Request::AsCGI'),
64    ],
65);
66
67if (HAVE_MP) {
68    Apache::TestMM::filter_args();
69    Apache::TestMM::generate_script('t/TEST');
70    tests('t/*.t t/modperl/basic.t');
71}
72
73build_requires 'Test::More';
74build_requires 'IO::Scalar';
75build_requires 'File::Temp' => '0.20';
76build_requires 'HTTP::Request::AsCGI';
77
78use_test_base;
79auto_include;
80auto_install;
81WriteAll;
82
Note: See TracBrowser for help on using the browser.