-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.PL
58 lines (47 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
57
58
use inc::Module::Install;
my $GOT_DNS;
BEGIN {
$GOT_DNS = 0;
eval {
require POE::Component::Client::DNS;
$GOT_DNS = 1 if $POE::Component::Client::DNS::VERSION >= 0.99;
};
}
print <<NOTICE;
---------------------------------------------------------------
POE::Component::IRC now features an online test as part of the
testsuite. Whilst I have tried to make it as robust as I can
the last test may take up to 40 seconds or so to complete.
Please be patient while it does it's thing.
---------------------------------------------------------------
---------------------------------------------------------------
A lot of the tests make use of the loopback interface. If this
is firewalled then these tests will fail.
---------------------------------------------------------------
NOTICE
_no_dns() unless $GOT_DNS;
name 'POE-Component-IRC';
license 'perl';
author 'Chris Williams <chris@bingosnet.co.uk>';
version_from 'lib/POE/Component/IRC.pm';
abstract_from 'lib/POE/Component/IRC.pm';
build_requires 'Test::More' => '0.47';
requires 'warnings::compat' => 0 if $] < 5.006;
requires 'POE' => 0.3202;
requires 'POE::Filter::IRCD' => 1.7;
requires 'Carp' => 0;
requires 'Socket' => 0;
requires 'POSIX' => 0;
tests 't/*.t t/*/*.t';
clean_files 'README.send followtail';
WriteAll();
exit 0;
sub _no_dns {
print <<NO_DNS;
----------------------------------------------------------------
Hmmm. POE::Component::Client::DNS 0.99 isn't installed. It's use
is recommended but not necessary. Consider installing it. Thanks
----------------------------------------------------------------
NO_DNS
return;
}