This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Promote v5.36 usage and feature bundles doc
[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
13 my @extra;
14 push @extra, 'LICENSE' => 'perl_5'
15     unless $ExtUtils::MakeMaker::VERSION < 6.31;
16 push @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
25 WriteMakefile
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' => join(" ",
33                 "-DDOUBLE_SLASHES_SPECIAL=@{[$^O eq q(qnx) || $^O eq q(nto) ? 1 : 0]}",
34                 ((grep { $_ eq 'PERL_CORE=1' } @ARGV) ? '-DNO_PPPORT_H' : ()),
35           ),
36           'PREREQ_PM' => {
37                            'Carp' => '0',
38                            'File::Basename' => '0',
39                            'Scalar::Util' => '0',
40                            # done_testing() is used in dist/Cwd/t/Spec.t
41                            'Test::More' => 0.88,
42                          },
43           ($] > 5.011) ? () : ( INSTALLDIRS => 'perl' ), # CPAN sourced versions should now install to site
44           'EXE_FILES' => [],
45           'PL_FILES' => {},
46           @extra,
47         )
48 ;