-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.PL
77 lines (68 loc) · 1.8 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
64
65
66
67
68
69
70
71
72
73
74
75
76
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %conf = (
NAME => 'Expect',
VERSION_FROM => 'lib/Expect.pm',
PREREQ_PM => {
'IO::Tty' => 1.11,
'IO::Pty' => 1.11,
# standard modules:
'POSIX' => 0,
'Fcntl' => 0,
'Carp' => 0,
'IO::Handle' => 0,
'Exporter' => 0,
'Errno' => 0,
},
AUTHOR => [
'Austin Schutz <[email protected]>',
'Roland Giersig <[email protected]>',
'Dave Jacoby <[email protected]>',
],
ABSTRACT_FROM => 'lib/Expect.pm',
MIN_PERL_VERSION => '5.006000',
clean => { 'FILES' => '*.log Expect-*' },
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
);
if (eval { ExtUtils::MakeMaker->VERSION(6.3002) }) {
$conf{LICENSE} = 'perl';
}
if (eval { ExtUtils::MakeMaker->VERSION(6.46) }) {
$conf{META_MERGE} = {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'http://github.com/jacoby/expect.pm.git',
web => 'http://github.com/jacoby/expect.pm',
}
}
};
}
my %configure_requires = (
'ExtUtils::MakeMaker' => '6.64',
);
my %build_requires = ();
my %test_requires = (
'Test::More' => '1.00',
# standard modules:
'File::Temp' => 0,
);
### merging data "standard code"
if (eval { ExtUtils::MakeMaker->VERSION(6.52) }) {
$conf{CONFIGURE_REQUIRES} = \%configure_requires;
} else {
%{ $conf{PREREQ_PM} } = (%{ $conf{PREREQ_PM} }, %configure_requires);
}
if (eval { ExtUtils::MakeMaker->VERSION(6.5503) }) {
$conf{BUILD_REQUIRES} = \%build_requires;
} else {
%{ $conf{PREREQ_PM} } = (%{ $conf{PREREQ_PM} }, %build_requires);
}
if (eval { ExtUtils::MakeMaker->VERSION(6.64) }) {
$conf{TEST_REQUIRES} = \%test_requires;
} else {
%{ $conf{PREREQ_PM} } = (%{ $conf{PREREQ_PM} }, %test_requires);
}
WriteMakefile(%conf);