forked from bingos/poe-component-irc
/
Makefile.PL
executable file
·63 lines (50 loc) · 1.73 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
59
60
61
62
63
# $Id: Makefile.PL,v 3.9 2005/04/14 19:23:16 chris Exp $
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
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;
WriteMakefile(
'NAME' => 'POE::Component::IRC',
'PREREQ_PM' => {
'warnings' => 0,
'POE' => 0.3202,
'POE::Filter::IRCD' => 1.7,
'Carp' => 0,
'Socket' => 0,
'POSIX' => 0,
},
'VERSION_FROM' => 'lib/POE/Component/IRC.pm', # finds $VERSION
'dist' => { 'COMPRESS' => 'gzip --best' },
'test' => { TESTS => 't/*.t t/*/*.t' },
'clean' => { FILES => "README.send" },
);
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;
}