forked from bingos/poe-component-server-simplehttp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
45 lines (35 loc) · 1.58 KB
/
Makefile.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
39
40
41
42
43
44
45
#use ExtUtils::MakeMaker;
use inc::Module::Install;
$ENV{PERL_MM_USE_DEFAULT}=1 if $Module::Install::AUTHOR;
name 'POE-Component-Server-SimpleHTTP';
author 'Apocalypse <[email protected]>';
license 'perl';
auto_license holder => 'Apocalypse, Chris Williams, Eriam Schaffter, Marlon Bailey and Philip Gwyn';
perl_version '5.006';
version_from 'lib/POE/Component/Server/SimpleHTTP.pm';
abstract_from 'lib/POE/Component/Server/SimpleHTTP.pm';
# Build the prerequisite list
requires 'HTTP::Date' => 0;
requires 'Carp' => 0;
requires 'Sys::Hostname' => 0;
requires 'POE' => '1.0000';
requires 'Storable' => 0;
requires 'Socket' => 0;
requires 'HTTP::Request' => 0;
requires 'HTTP::Response' => 0;
requires 'Moose' => 0.90;
requires 'MooseX::POE' => 0.205;
build_requires 'Test::More' => 0.47;
build_requires 'POE::Filter::HTTP::Parser' => 1.06;
build_requires 'Test::POE::Client::TCP' => 0.10;
my $value = prompt( 'Do you want to test streaming ( requires POE::Component::Client::HTTP ) [y/N]?', 'N' );
build_requires 'POE::Component::Client::HTTP' => 0.82 if $value =~ /^Y$/i;
# Ask users if they want SSL support
$value = prompt( 'Do you want SSL support ( requires POE::Component::SSLify ) [y/N]?', 'N' );
# Add to the prereqs PoCo::SSLify?
requires 'POE::Component::SSLify' => '0.04' if $value =~ /^Y$/i;
# Thanks to Matt Trout for this tip
makemaker_args(dist => { PREOP => "$^X tools/git-log.pl > ./Changes" });
auto_provides;
githubmeta;
WriteAll();