-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
79 lines (74 loc) · 2.44 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- perl -*-
BEGIN { require 5.006; }
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
if (eval { require List::Util }
&& List::Util->VERSION <= 1.45) {
package MY;
no warnings 'once';
*install = sub {
my $self = shift;
my $quote_literal = $self->can('quote_literal') ? 'quote_literal' : sub { $_[1] };
return '
pure_site_install ::
$(NOECHO) $(RM_F) ' . $self->$quote_literal(
$self->catfile('$(DESTINSTALLSITEARCH)', 'List', 'Util.pm')
) . '
$(NOECHO) $(RM_F) ' . $self->$quote_literal(
$self->catfile('$(DESTINSTALLSITEARCH)', 'List', 'Util', 'PP.pm')
) . '
pure_perl_install ::
$(NOECHO) $(RM_F) ' . $self->$quote_literal(
$self->catfile('$(DESTINSTALLARCHLIB)', 'List', 'Util.pm')
) . '
$(NOECHO) $(RM_F) ' . $self->$quote_literal(
$self->catfile('$(DESTINSTALLARCHLIB)', 'List', 'Util', 'PP.pm')
)
. "\n" . $self->SUPER::install;
};
}
WriteMakefile(
NAME => q[List::Util],
ABSTRACT => q[Common List utility subroutines],
AUTHOR => q[Graham Barr <[email protected]>],
VERSION_FROM => 'lib/List/Util.pm',
( $PERL_CORE
? ()
: (
INSTALLDIRS => ($] < 5.011 ? q[perl] : q[site]),
PREREQ_PM => {
(do {
require lib;
lib->import('inc');
require ExtUtils::HasCompiler;
ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1);
} ? ("List::Util::XS" => "1.46_01") : ()),
'Test::More' => 0,
},
(eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'perl') : ()),
(eval { ExtUtils::MakeMaker->VERSION(6.48) } ? (MIN_PERL_VERSION => '5.006') : ()),
( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
META_MERGE => {
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => { ##
repository => {
url => 'https://github.com/Scalar-List-Utils/List-Util.git',
web => 'https://github.com/Scalar-List-Utils/List-Util',
type => 'git',
},
bugtracker => {
mailto => '[email protected]',
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Scalar-List-Utils',
},
},
}
)
: ()
),
)
),
(-f 'META.yml' ? () : ( test => { TESTS => 't/*.t xt/*.t' } )),
);