File: Makefile.PL

package info (click to toggle)
libenum-perl 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 108 kB
  • ctags: 4
  • sloc: perl: 132; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,011 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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) { # dev version
    $mm_ver = eval $mm_ver;
    die $@ if $@;
}

WriteMakefile(
    'NAME'	=> 'enum',
    'VERSION_FROM' => 'lib/enum.pm', # finds $VERSION

    PREREQ_PM => {
        'Carp'     => 0,
        'strict'   => 0,
        'warnings' => 0,
    },

    ($mm_ver >= 6.31 ? (LICENSE => 'perl') : ()),

    ($mm_ver <= 6.45 ? () : (META_MERGE => {
        'meta-spec' => { version => 2 },
        resources => {
            bugtracker  => 'https://rt.cpan.org/Public/Dist/Display.html?Name=enum',
            repository  => {
                type => 'git',
                web  => 'https://github.com/neilbowers/enum',
                url  => 'git://github.com/neilbowers/enum.git',
            },
        },
    })),

    ($mm_ver >= 6.48
        ? (MIN_PERL_VERSION => 5.006)
        : ()
    ),

);