File: Makefile.PL

package info (click to toggle)
libscalar-util-numeric-perl 0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 288 kB
  • ctags: 754
  • sloc: perl: 128; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download | duplicates (2)
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
use 5.008000;

use strict;
use warnings;

use Config;
use ExtUtils::MakeMaker;

my $EUMM_VERSION = eval($ExtUtils::MakeMaker::VERSION);
my $OPTIMIZE;

if ($Config{gccversion}) {
    $OPTIMIZE = '-O3 -Wall -W';
    # the dev directory is under VC now - look for a hidden file instead
    $OPTIMIZE .= ' -g -Wextra -Wdeclaration-after-statement' if (-f '.dev');
} elsif ($Config{osname} eq 'MSWin32') {
    $OPTIMIZE = '-O2 -W4';
} else {
    $OPTIMIZE = $Config{optimize};
}

WriteMakefile(
    NAME          => 'Scalar::Util::Numeric',
    VERSION_FROM  => 'lib/Scalar/Util/Numeric.pm',
    PREREQ_PM     => {},
    ABSTRACT_FROM => 'lib/Scalar/Util/Numeric.pm',
    AUTHOR        => 'chocolateboy <chocolate@cpan.org>, Michael G. Schwern <schwern@pobox.com>',
    LIBS          => [ '' ],
    DEFINE        => '',
    INC           => '-I.',
    OPTIMIZE      => $OPTIMIZE,
    ($EUMM_VERSION >= 6.48 ? (MIN_PERL_VERSION => '5.8.0') : ()),
    ($EUMM_VERSION >= 6.31 ? (LICENSE => 'perl') : ()),
    ($EUMM_VERSION >= 6.46 ?
        (META_MERGE => {
            resources => {
                repository => 'https://github.com/chocolateboy/Scalar-Util-Numeric',
                bugtracker => 'https://github.com/chocolateboy/Scalar-Util-Numeric/issues',
            },
        })
        : ()
    ),
);