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
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     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     },
35     @extra,
36 )
37 ;
38
39 sub _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 }