This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
new perldelta
[perl5.git] / dist / Module-CoreList / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 use strict;
4 use warnings;
5
6 my @extra;
7 push @extra, 'INSTALLDIRS' => 'perl' if $] >= 5.008009 and $] < 5.012;
8
9 push @extra, 'META_MERGE' => {
10         resources => {
11             repository => 'https://github.com/Perl/perl5.git',
12             bugtracker => 'https://github.com/Perl/perl5/issues',
13             homepage   => "http://dev.perl.org/",
14         },
15     } unless $ExtUtils::MakeMaker::VERSION < 6.46;
16
17
18 WriteMakefile
19 (
20     'NAME' => 'Module::CoreList',
21     'VERSION_FROM' => 'lib/Module/CoreList.pm',
22     'ABSTRACT_FROM' => 'lib/Module/CoreList.pod',
23     'PREREQ_PM' => {
24         'Test::More' => '0',
25         'List::Util' => 0,
26         'version' => 0.88,
27     },
28     'EXE_FILES' => [ _scripts() ],
29     'INSTALLDIRS' => ($] < 5.011 ? 'perl' : 'site'),
30     'PL_FILES' => {},
31     LICENSE => 'perl',
32     @extra,
33 )
34 ;
35
36 sub _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 }