forked from perhunter/slurp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
104 lines (96 loc) · 2.69 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
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
use strict;
use warnings;
use ExtUtils::MakeMaker;
use 5.006;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my %BuildReqs = (
"ExtUtils::MakeMaker" => 0,
);
my %ConfigReqs = (
"ExtUtils::MakeMaker" => 0,
);
my %DevReqs = (
"Test::Pod" => 0,
"Test::Pod::Coverage" => 0,
"Test::Spelling" => 0,
"Test::Version" => 0,
);
my %TestReqs = (
"overload" => 0,
"strict" => 0,
"warnings" => 0,
"Carp" => 0,
'Exporter' => '5.57',
'Fcntl' => 0,
"File::Basename" => 0,
"File::Spec" => '3.01',
"File::Temp" => 0,
"IO::Handle" => 0,
"POSIX" => 0,
"Scalar::Util" => '1.00', # had tainted()
"Socket" => 0,
"Symbol" => 0,
"Test::More" => 0,
);
my %prereqs = (
'B' => 0,
'Carp' => 0,
'Exporter' => '5.57',
'Errno' => 0,
'Fcntl' => 0,
"File::Basename" => 0,
"File::Spec" => '3.01',
"File::Temp" => 0,
"IO::Handle" => 0,
'POSIX' => 0,
"strict" => 0,
"warnings" => 0,
);
my %WriteMakefileArgs = (
'NAME' => 'File::Slurp',
"DISTNAME" => "File-Slurp",
'LICENSE' => 'perl_5',
'AUTHOR' => 'Uri Guttman <uri@stemsystems.com>',
'VERSION_FROM' => 'lib/File/Slurp.pm',
'ABSTRACT_FROM' => 'lib/File/Slurp.pm',
'META_MERGE' => {
'dynamic_config' => 0,
'meta-spec' => {version => 2},
'no_index' => {directory => ['xt']},
'resources' => {
repository => {
type => 'git',
url => 'https://github.com/perhunter/slurp.git',
web => 'https://github.com/perhunter/slurp',
},
},
'x_contributors' => [
'Aristotle Pagaltzis <ARISTOTLE@cpan.org>',
'Chase Whitener <capoeirab@cpan.org>',
'Dan Book <grinnz@gmail.com>',
'Graham Knop <haarg@haarg.org>',
'James E Keenan <jkeenan@cpan.org>',
],
},
"BUILD_REQUIRES" => \%BuildReqs,
"CONFIGURE_REQUIRES" => \%ConfigReqs,
"TEST_REQUIRES" => \%TestReqs,
"PREREQ_PM" => \%prereqs,
"test" => {
"TESTS" => "t/*.t",
},
);
unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
my %fallback = (%prereqs, %TestReqs, %BuildReqs);
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%fallback;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION('6.52') };
delete $WriteMakefileArgs{META_MERGE}
unless eval { ExtUtils::MakeMaker->VERSION('6.46') };
delete $WriteMakefileArgs{LICENSE}
unless eval { ExtUtils::MakeMaker->VERSION('6.31') };
WriteMakefile(%WriteMakefileArgs);