2 BEGIN { require 5.006; }
7 use ExtUtils::MakeMaker;
8 my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
9 my $defines = $ENV{PERL_CORE} ? q[-DPERL_EXT] : q[-DPERL_EXT -DUSE_PPPORT_H];
12 NAME => q[List::Util],
13 ABSTRACT => q[Common Scalar and List utility subroutines],
14 AUTHOR => q[Graham Barr <gbarr@cpan.org>],
16 DISTNAME => q[Scalar-List-Utils],
17 VERSION_FROM => 'lib/List/Util.pm',
19 # We go through the ListUtil.xs trickery to foil platforms
20 # that have the feature combination of
22 # (2) allowing only one object by the same name in the static library
23 # (3) the object name matching being case-blind
24 # This means that we can't have the top-level util.o
25 # and the extension-level Util.o in the same build.
26 # One such platform is the POSIX-BC BS2000 EBCDIC mainframe platform.
27 XS => {'ListUtil.xs' => 'ListUtil.c'},
28 OBJECT => 'ListUtil$(OBJ_EXT)',
32 INSTALLDIRS => ($] < 5.011 ? q[perl] : q[site]),
36 (eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'perl') : ()),
37 (eval { ExtUtils::MakeMaker->VERSION(6.48) } ? (MIN_PERL_VERSION => '5.006') : ()),
38 ( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
40 'meta-spec' => { version => 2 },
44 url => 'https://github.com/Scalar-List-Utils/Scalar-List-Utils.git',
45 web => 'https://github.com/Scalar-List-Utils/Scalar-List-Utils',
49 mailto => 'bug-Scalar-List-Utils@rt.cpan.org',
50 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Scalar-List-Utils',
61 if ($params{TEST_REQUIRES} and !eval { ExtUtils::MakeMaker->VERSION(6.64) }) {
62 $params{BUILD_REQUIRES} = {
63 %{$params{BUILD_REQUIRES} || {}},
64 %{delete $params{TEST_REQUIRES}},
67 if ($params{BUILD_REQUIRES} and !eval { ExtUtils::MakeMaker->VERSION(6.5503) }) {
68 $params{PREREQ_PM} = {
69 %{$params{PREREQ_PM} || {}},
70 %{delete $params{BUILD_REQUIRES}},
74 WriteMakefile(%params);