-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
48 lines (43 loc) · 1.77 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
# See https://rt.cpan.org/Public/Bug/Display.html?id=4681
# and https://rt.perl.org/Ticket/Display.html?id=125603
# When installing a newer Cwd on a system with an existing Cwd,
# under some circumstances the old Cwd.pm and the new Cwd.xs could
# get mixed up and SEGVs ensue.
BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC }
require 5.005;
use ExtUtils::MakeMaker;
my @extra;
push @extra, 'LICENSE' => 'perl_5'
unless $ExtUtils::MakeMaker::VERSION < 6.31;
push @extra, 'META_MERGE' => {
resources => {
repository => 'git://perl5.git.perl.org/perl.git',
bugtracker => 'https://github.com/Perl/perl5/issues',
homepage => "http://dev.perl.org/",
license => [ 'http://dev.perl.org/licenses/' ],
},
} unless $ExtUtils::MakeMaker::VERSION < 6.46;
WriteMakefile
(
'DISTNAME' => 'PathTools',
'NAME' => 'Cwd',
'VERSION_FROM' => 'Cwd.pm',
'ABSTRACT' => 'Tools for working with directory and file names',
'AUTHOR' => 'Perl 5 Porters',
'DEFINE' => join(" ",
"-DDOUBLE_SLASHES_SPECIAL=@{[$^O eq q(qnx) || $^O eq q(nto) ? 1 : 0]}",
((grep { $_ eq 'PERL_CORE=1' } @ARGV) ? '-DNO_PPPORT_H' : ()),
),
'PREREQ_PM' => {
'Carp' => '0',
'File::Basename' => '0',
'Scalar::Util' => '0',
# done_testing() is used in dist/Cwd/t/Spec.t
'Test::More' => 0.88,
},
($] > 5.011) ? () : ( INSTALLDIRS => 'perl' ), # CPAN sourced versions should now install to site
'EXE_FILES' => [],
'PL_FILES' => {},
@extra,
)
;