This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Subject: [PATCH] Update INSTALLDIRS to favor installation under 'site'.
[perl5.git] / dist / ExtUtils-CBuilder / Makefile.PL
1 use strict;
2 use warnings;
3
4 use ExtUtils::MakeMaker 6.30;
5
6 my %WriteMakefileArgs = (
7   "NAME" => "ExtUtils::CBuilder",
8   "VERSION_FROM" => "lib/ExtUtils/CBuilder.pm",
9   "ABSTRACT_FROM" => "lib/ExtUtils/CBuilder.pm",
10   "AUTHOR" => "Ken Williams <kwilliams\@cpan.org>, The Perl 5 Porters",
11   "BUILD_REQUIRES" => {
12     "Test::More" => "0.47"
13   },
14   "CONFIGURE_REQUIRES" => {
15     "ExtUtils::MakeMaker" => "6.30"
16   },
17   "EXE_FILES" => [],
18   "INSTALLDIRS" => ($] < 5.011 ? 'perl' : 'site'),
19   "LICENSE" => "perl",
20   "PREREQ_PM" => {
21     "Cwd" => 0,
22     "File::Basename" => 0,
23     "File::Spec" => "3.13",
24     "File::Temp" => 0,
25     "IO::File" => 0,
26     "IPC::Cmd" => 0,
27     "Perl::OSType" => 0,
28     "Text::ParseWords" => 0
29   },
30 );
31
32 unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
33   my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
34   my $pp = $WriteMakefileArgs{PREREQ_PM};
35   for my $mod ( keys %$br ) {
36     if ( exists $pp->{$mod} ) {
37       $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
38     }
39     else {
40       $pp->{$mod} = $br->{$mod};
41     }
42   }
43 }
44
45 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
46   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
47
48 $WriteMakefileArgs{INSTALLDIRS} = 'perl'
49     if $] >= 5.009005 && $] <= 5.011000;
50
51 WriteMakefile(%WriteMakefileArgs);
52