File: Makefile.PL

package info (click to toggle)
libbloom-filter-perl 1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 136 kB
  • ctags: 16
  • sloc: perl: 166; makefile: 7
file content (49 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (3)
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
use strict;
use warnings;

use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
    NAME => 'Bloom::Filter',
    VERSION_FROM => 'lib/Bloom/Filter.pm',
    MIN_PERL_VERSION => '5.6.0',
    PREREQ_PM => {
        'Carp' => 0,
        'Digest::SHA' => 0,
        'strict' => 0,
        'warnings' => 0,
    },
    ABSTRACT_FROM => 'lib/Bloom/Filter.pm',
    AUTHOR => 'Maciej Ceglowski <maciej@ceglowski.com>',
    LICENSE => 'gpl_2',
    META_MERGE => {
        'meta-spec' => { version => 2 },
        resources => {
            repository => {
                type => 'git',
                url => 'git://github.com/Xaerxess/Bloom-Filter.git',
                web => 'https://github.com/Xaerxess/Bloom-Filter',
            },
            bugtracker => {
                web => 'https://rt.cpan.org/Dist/Display.html?Name=Bloom-Filter',
            },
        },
    },
    test => {
        TESTS => "t/*.t"
    },
);

unless (eval { ExtUtils::MakeMaker->VERSION(6.48) }) {
    delete $WriteMakefileArgs{MIN_PERL_VERSION};
}

unless (eval { ExtUtils::MakeMaker->VERSION(6.46) }) {
    delete $WriteMakefileArgs{META_MERGE};
}

unless (eval { ExtUtils::MakeMaker->VERSION(6.31) }) {
    delete $WriteMakefileArgs{LICENSE};
}

WriteMakefile(%WriteMakefileArgs);