|
Revision 10868, 1.6 kB
(checked in by daisuke, 5 years ago)
|
|
recommends hack again
|
| Rev | Line | |
|---|
| [10223] | 1 | use inc::Module::Install; |
|---|
| [10868] | 2 | |
|---|
| 3 | { |
|---|
| 4 | no warnings 'redefine'; |
|---|
| 5 | *recommends_hack = $Module::Install::VERSION > 0.70 ? |
|---|
| 6 | sub { recommends(@_); $_[0] } : |
|---|
| 7 | \&recommends; |
|---|
| 8 | } |
|---|
| 9 | |
|---|
| 10 | |
|---|
| [10223] | 11 | name 'HTTP-Engine'; |
|---|
| 12 | all_from 'lib/HTTP/Engine.pm'; |
|---|
| 13 | |
|---|
| [10867] | 14 | requires 'Moose' => 0.40; |
|---|
| 15 | requires 'MooseX::Object::Pluggable'; |
|---|
| [10479] | 16 | requires 'Scalar::Util'; |
|---|
| 17 | |
|---|
| 18 | requires 'IO::Socket'; |
|---|
| 19 | |
|---|
| 20 | requires 'File::Copy'; |
|---|
| 21 | requires 'IO::File'; |
|---|
| 22 | requires 'File::Spec::Unix'; |
|---|
| 23 | |
|---|
| 24 | requires 'CGI::Simple::Cookie'; |
|---|
| 25 | requires 'HTTP::Body'; |
|---|
| [10867] | 26 | requires 'HTTP::Headers'; |
|---|
| [10479] | 27 | requires 'URI'; |
|---|
| 28 | |
|---|
| [10523] | 29 | features( |
|---|
| 30 | 'Interface::FCGI' => [ |
|---|
| 31 | -default => 0, |
|---|
| [10866] | 32 | recommends_hack('FCGI'), |
|---|
| [10523] | 33 | ], |
|---|
| [10479] | 34 | |
|---|
| [10842] | 35 | 'Interface::ServerSimple' => [ |
|---|
| 36 | -default => 0, |
|---|
| [10866] | 37 | recommends_hack('HTTP::Server::Simple'), |
|---|
| [10842] | 38 | ], |
|---|
| 39 | |
|---|
| [10523] | 40 | 'Interface::Standalone' => [ |
|---|
| 41 | -default => 0, |
|---|
| [10866] | 42 | recommends_hack('Errno'), |
|---|
| [10523] | 43 | ], |
|---|
| [10479] | 44 | |
|---|
| [10523] | 45 | 'Interface::Test' => [ |
|---|
| 46 | -default => 0, |
|---|
| [10866] | 47 | recommends_hack('HTTP::Request::AsCGI'), |
|---|
| [10523] | 48 | ], |
|---|
| 49 | |
|---|
| 50 | 'ModuleReload' => [ |
|---|
| 51 | -default => 0, |
|---|
| [10866] | 52 | recommends_hack('Module::Reload'), |
|---|
| [10523] | 53 | ], |
|---|
| [10531] | 54 | |
|---|
| 55 | 'DebugScreen' => [ |
|---|
| 56 | -default => 0, |
|---|
| [10866] | 57 | recommends_hack('Carp::Always'), |
|---|
| [10531] | 58 | ], |
|---|
| [10523] | 59 | ); |
|---|
| 60 | |
|---|
| [10866] | 61 | # |
|---|
| 62 | # 'Interface::Standalone' => [ |
|---|
| 63 | # -default => 0, |
|---|
| 64 | # recommends_hack('Errno'), |
|---|
| 65 | # ], |
|---|
| 66 | # |
|---|
| 67 | # 'Interface::Test' => [ |
|---|
| 68 | # -default => 0, |
|---|
| 69 | # recommends_hack('HTTP::Request::AsCGI'), |
|---|
| 70 | # ], |
|---|
| 71 | # |
|---|
| 72 | # 'ModuleReload' => [ |
|---|
| 73 | # -default => 0, |
|---|
| 74 | # recommends_hack('Module::Reload'), |
|---|
| 75 | # ], |
|---|
| 76 | # |
|---|
| 77 | # 'DebugScreen' => [ |
|---|
| 78 | # -default => 0, |
|---|
| 79 | # recommends_hack('Carp::Always'), |
|---|
| 80 | # ], |
|---|
| 81 | #); |
|---|
| 82 | # |
|---|
| [10223] | 83 | build_requires 'Test::More'; |
|---|
| 84 | use_test_base; |
|---|
| 85 | auto_include; |
|---|
| [10537] | 86 | auto_install; |
|---|
| [10223] | 87 | WriteAll; |
|---|