-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
57 lines (54 loc) · 1.9 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
# -*- perl -*-
BEGIN { require 5.006; }
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
WriteMakefile(
NAME => q[Scalar::Util],
ABSTRACT => q[Common Scalar utility subroutines],
AUTHOR => q[Graham Barr <[email protected]>],
DEFINE => q[-DPERL_EXT],
VERSION_FROM => 'lib/Scalar/Util.pm',
# We go through the ScalarUtil.xs trickery to foil platforms
# that have the feature combination of
# (1) static builds
# (2) allowing only one object by the same name in the static library
# (3) the object name matching being case-blind
# This means that we can't have the top-level util.o
# and the extension-level Util.o in the same build.
# One such platform is the POSIX-BC BS2000 EBCDIC mainframe platform.
XS => {'ScalarUtil.xs' => 'ScalarUtil.c'},
OBJECT => 'ScalarUtil$(OBJ_EXT)',
( $PERL_CORE
? ()
: (
INSTALLDIRS => ($] < 5.011 ? q[perl] : q[site]),
PREREQ_PM => {
'Test::More' => 0,
'List::Util' => '1.46_01',
},
(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/Scalar-Util.git',
web => 'https://github.com/Scalar-List-Utils/Scalar-Util',
type => 'git',
},
bugtracker => {
mailto => '[email protected]',
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Scalar-Util',
},
},
}
)
: ()
),
)
),
);