This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add thread-safe locale handling
[perl5.git] / dist / Module-CoreList / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 push @extra, 'INSTALLDIRS' => 'perl' if $] >= 5.008009 and $] < 5.012;
4
5 push @extra, 'META_MERGE' => {
6         resources => {
7             repository => 'git://perl5.git.perl.org/perl.git',
8             bugtracker => 'https://rt.perl.org/rt3/',
9             homepage   => "http://dev.perl.org/",
10         },
11     } unless $ExtUtils::MakeMaker::VERSION < 6.46;
12
13
14 WriteMakefile
15 (
16     'NAME' => 'Module::CoreList',
17     'VERSION_FROM' => 'lib/Module/CoreList.pm',
18     'ABSTRACT_FROM' => 'lib/Module/CoreList.pod',
19     'PREREQ_PM' => {
20         'Test::More' => '0',
21         'List::Util' => 0,
22         'version' => 0.88,
23     },
24     'EXE_FILES' => [ _scripts() ],
25     'INSTALLDIRS' => ($] < 5.011 ? 'perl' : 'site'),
26     'PL_FILES' => {},
27     LICENSE => 'perl',
28     @extra,
29 )
30 ;
31
32 sub _scripts {
33  my $scripts = 'corelist';
34  if ( $] >= 5.008009 and !$ENV{PERL_CORE} ) {
35    require Config;
36    my $version = sprintf("%vd",$^V);
37    if ( $Config::Config{versiononly} and
38       $Config::Config{startperl} =~ /\Q$version\E$/ ) {
39       require File::Copy;
40       File::Copy::copy( 'corelist', "corelist$version" );
41       $scripts = "corelist$version";
42     }
43  }
44  return $scripts;
45 }