-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.PL
43 lines (40 loc) · 1.16 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
use 5.006;
use ExtUtils::MakeMaker;
my @exe = ();
open my $fh, '<'. 'MANIFEST';
while (<$fh>) {
chomp;
push @exe, $_ if (m!^bin/!);
}
close $fh;
eval { require YAML::Syck; };
if ($@) {
eval { require YAML; };
die "Missing required YAML::Syck (recommended) or YAML module\n" if ($@);
warn "Found YAML module which is sufficient but YAML::Syck would be better\n";
}
eval { require DB_File; };
warn "DB_File is required for xPL config.basic support but was not found\n"
if ($@);
WriteMakefile(
NAME => 'xPL-Perl',
VERSION_FROM => 'lib/xPL/Base.pm',
EXE_FILES => \@exe,
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT => 'lib/xPL/Listener.pm',
AUTHOR => 'Mark Hindess <[email protected]>',
PREREQ_PM => {
'Module::Pluggable' => 0,
'Date::Parse' => 0,
'AnyEvent' => 0,
'Sub::Name' => 0,
},
) : ()),
);
open F, "<Makefile.local" or exit(0);
open M, ">>Makefile" or exit(0);
while (<F>) {
print M;
}
close M;
close F;