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