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 8BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC } 9 10require 5.005; 11use ExtUtils::MakeMaker; 12 13my @extra; 14push @extra, 'LICENSE' => 'perl_5' 15 unless $ExtUtils::MakeMaker::VERSION < 6.31; 16push @extra, 'META_MERGE' => { 17 resources => { 18 repository => 'git://perl5.git.perl.org/perl.git', 19 bugtracker => 'https://github.com/Perl/perl5/issues', 20 homepage => "http://dev.perl.org/", 21 license => [ 'http://dev.perl.org/licenses/' ], 22 }, 23 } unless $ExtUtils::MakeMaker::VERSION < 6.46; 24 25WriteMakefile 26( 27 'DISTNAME' => 'PathTools', 28 'NAME' => 'Cwd', 29 'VERSION_FROM' => 'Cwd.pm', 30 'ABSTRACT' => 'Tools for working with directory and file names', 31 'AUTHOR' => 'Perl 5 Porters', 32 'DEFINE' => "-DDOUBLE_SLASHES_SPECIAL=@{[$^O eq q(qnx) || $^O eq q(nto) ? 1 : 0]}", 33 'PREREQ_PM' => { 34 'Carp' => '0', 35 'File::Basename' => '0', 36 'Scalar::Util' => '0', 37 # done_testing() is used in dist/Cwd/t/Spec.t 38 'Test::More' => 0.88, 39 }, 40 ($] > 5.011) ? () : ( INSTALLDIRS => 'perl' ), # CPAN sourced versions should now install to site 41 'EXE_FILES' => [], 42 'PL_FILES' => {}, 43 @extra, 44 ) 45; 46