This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
disable cwd_enoent test
[perl5.git] / dist / PathTools / Makefile.PL
1
2 # See https://rt.cpan.org/Public/Bug/Display.html?id=4681
3 # and https://rt.perl.org/Ticket/Display.html?id=125603
4 # When installing a newer Cwd on a system with an existing Cwd,
5 # under some circumstances the old Cwd.pm and the new Cwd.xs could
6 # get mixed up and SEGVs ensue.
7
8 BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC }
9
10 require 5.005;
11 use ExtUtils::MakeMaker;
12 WriteMakefile
13 (
14           'DISTNAME' => 'PathTools',
15           'NAME' => 'Cwd',
16           'VERSION_FROM' => 'Cwd.pm',
17           'DEFINE' => join(" ",
18                 "-DDOUBLE_SLASHES_SPECIAL=@{[$^O eq q(qnx) || $^O eq q(nto) ? 1 : 0]}",
19                 ((grep { $_ eq 'PERL_CORE=1' } @ARGV) ? '-DNO_PPPORT_H' : ()),
20           ),
21           'PREREQ_PM' => {
22                            'Carp' => '0',
23                            'File::Basename' => '0',
24                            'Scalar::Util' => '0',
25                            # done_testing() is used in dist/Cwd/t/Spec.t
26                            'Test::More' => 0.88,
27                          },
28           ($] > 5.011) ? () : ( INSTALLDIRS => 'perl' ), # CPAN sourced versions should now install to site
29           'EXE_FILES' => [],
30           'PL_FILES' => {}
31         )
32 ;