forked from rpcme/File-Path
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.PL
67 lines (60 loc) · 1.86 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
# generate Makefile for building File::Path
#
# Copyright (C) 2007 David Landgren
# Copyright (C) 2015 Richard Elberger, James Keenan
use strict;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
NAME => 'File::Path',
VERSION_FROM => 'lib/File/Path.pm',
ABSTRACT_FROM => 'lib/File/Path.pm',
INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
PREREQ_PM => {
'Cwd' => 0,
'Exporter' => 0,
'File::Basename' => 0,
'File::Spec' => 0,
( eval { $] < 5.006 } ? ( 'Symbol' => 0 ) : () ),
},
TEST_REQUIRES => {
'Carp' => 0,
'Config' => 0,
'Errno' => 0,
'Fcntl' => 0,
'File::Spec::Functions' => 0,
'SelectSaver' => 0,
'Test::Simple' => 0.44,
},
clean => {
FILES => 'cover_db test-*',
},
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ? ( META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
url => 'https://github.com/jkeenan/File-Path.git',
web => 'https://github.com/jkeenan/File-Path',
type => 'git',
},
},
license => 'perl',
}) : () ),
);
if ($^O eq 'MSWin32') {
$WriteMakefileArgs{TEST_REQUIRES}{'Win32'} = 0;
}
my %FallbackPrereqs = (
%{$WriteMakefileArgs{PREREQ_PM}},
%{$WriteMakefileArgs{TEST_REQUIRES}},
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);