/
PoeBuildInfo.pm
121 lines (104 loc) · 2.18 KB
/
PoeBuildInfo.pm
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# vim: ts=2 sw=2 expandtab
# Build information for POE. Moved into a library so it can be
# required by Makefile.PL and gen-meta.perl.
package PoeBuildInfo;
use strict;
use Exporter;
use vars qw(@ISA @EXPORT_OK);
push @ISA, qw(Exporter);
@EXPORT_OK = qw(
TEST_FILES
CLEAN_FILES
CORE_REQUIREMENTS
DIST_ABSTRACT
DIST_AUTHOR
CONFIG_REQUIREMENTS
REPOSITORY
HOMEPAGE
);
sub CONFIG_REQUIREMENTS () {
(
"POE::Test::Loops" => '1.360',
);
}
sub CORE_REQUIREMENTS () {
my @core_requirements = (
"Carp" => 0,
"Errno" => 1.09,
"Exporter" => 0,
"File::Spec" => 0.87,
"IO" => 1.24, # MSWin32 blocking(0)
"IO::Handle" => 1.27,
"IO::Pipely" => 0.005,
"POSIX" => 1.02,
"Socket" => 1.7,
"Storable" => 2.16,
"Test::Harness" => 2.26,
"Time::HiRes" => 1.59,
CONFIG_REQUIREMENTS,
);
if ($^O eq "MSWin32") {
push @core_requirements, (
"Win32::Console" => 0.031,
"Win32API::File" => 0.05,
"Win32::Job" => 0.03,
"Win32::Process" => 0,
"Win32" => 0,
);
}
elsif ($^O eq 'cygwin') {
# Skip IO::Tty. It has trouble building as of this writing.
}
else {
push @core_requirements, (
"IO::Tty" => 1.08, # avoids crashes on fbsd
);
}
return @core_requirements;
}
sub DIST_AUTHOR () {
( 'Rocco Caputo <rcaputo@cpan.org>' )
}
sub DIST_ABSTRACT () {
( 'Portable, event-loop agnostic eventy networking and multitasking.' )
}
sub CLEAN_FILES () {
my @clean_files = qw(
*/*/*/*/*~
*/*/*/*~
*/*/*/*~
*/*/*~
*/*~
*~
META.yml
Makefile.old
bingos-followtail
coverage.report
poe_report.xml
run_network_tests
t/20_resources/10_perl
t/20_resources/10_perl/*
t/20_resources/20_xs
t/20_resources/20_xs/*
t/30_loops
t/30_loops/*
t/30_loops/*/*
test-output.err
);
"@clean_files";
}
sub TEST_FILES () {
my @test_files = qw(
t/*.t
t/*/*.t
t/*/*/*.t
);
"@test_files";
}
sub REPOSITORY () {
'https://github.com/rcaputo/poe'
}
sub HOMEPAGE () {
'http://poe.perl.org/'
}
1;