This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ParseXS - better support for duplicate ALIASes
[perl5.git] / dist / Module-CoreList / Makefile.PL
CommitLineData
3a02dfe7
RGS
1use ExtUtils::MakeMaker;
2
043ae748
N
3use strict;
4use warnings;
5
6my @extra;
0338a13c
CBW
7push @extra, 'INSTALLDIRS' => 'perl' if $] >= 5.008009 and $] < 5.012;
8
ddd66388
CBW
9push @extra, 'META_MERGE' => {
10 resources => {
ab29b289 11 repository => 'https://github.com/Perl/perl5.git',
fa20e304 12 bugtracker => 'https://github.com/Perl/perl5/issues',
ddd66388
CBW
13 homepage => "http://dev.perl.org/",
14 },
15 } unless $ExtUtils::MakeMaker::VERSION < 6.46;
16
3a02dfe7
RGS
17
18WriteMakefile
19(
20 'NAME' => 'Module::CoreList',
21 'VERSION_FROM' => 'lib/Module/CoreList.pm',
fb7e05a4 22 'ABSTRACT_FROM' => 'lib/Module/CoreList.pod',
3a02dfe7 23 'PREREQ_PM' => {
10526356
AC
24 'Test::More' => '0',
25 'List::Util' => 0,
74921e08 26 'version' => 0.88,
3a02dfe7 27 },
0338a13c 28 'EXE_FILES' => [ _scripts() ],
262731ee 29 'INSTALLDIRS' => ($] < 5.011 ? 'perl' : 'site'),
3a02dfe7
RGS
30 'PL_FILES' => {},
31 LICENSE => 'perl',
32 @extra,
33)
34;
0338a13c
CBW
35
36sub _scripts {
37 my $scripts = 'corelist';
38 if ( $] >= 5.008009 and !$ENV{PERL_CORE} ) {
39 require Config;
40 my $version = sprintf("%vd",$^V);
41 if ( $Config::Config{versiononly} and
42 $Config::Config{startperl} =~ /\Q$version\E$/ ) {
43 require File::Copy;
44 File::Copy::copy( 'corelist', "corelist$version" );
45 $scripts = "corelist$version";
46 }
47 }
48 return $scripts;
49}