File: Makefile.PL

package info (click to toggle)
libtest-regexp-perl 2017040101-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 224 kB
  • ctags: 30
  • sloc: perl: 1,331; makefile: 2
file content (63 lines) | stat: -rw-r--r-- 1,712 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/perl

use 5.010;

use strict;
use warnings;
no  warnings 'syntax';

use ExtUtils::MakeMaker;

my %args = (
    NAME                   => 'Test::Regexp',
    VERSION_FROM           => 'lib/Test/Regexp.pm',
    ABSTRACT_FROM          => 'lib/Test/Regexp.pm',
    PREREQ_PM              => {
        'Exporter'              => 0,
        'Hash::Util::FieldHash' => 0,
        'Test::Builder'         => 0,
        'warnings'              => 0,
        'strict'                => 0,
    },
    MIN_PERL_VERSION       =>  5.010,
    AUTHOR                 => 'Abigail <test-regexp@abigail.be>',
    LICENSE                => 'mit',
    META_MERGE             => {
        test_requires      => {
            'Test::More'   => 0.88,
            'Test::Tester' => 0,
            'warnings'     => 0,
            'strict'       => 0,
        },
        resources          => {
            repository     => 'git://github.com/Abigail/Test-Regexp.git',
        },
        keywords           => ['regular expression', 'pattern', 'regexp',
                               'test', 'tests'],
    },
);

$args {META_MERGE} {build_requires} ||= {
    'ExtUtils::MakeMaker' =>  0,
    %{$args {META_MERGE} {test_requires}}
};
    
$args {META_MERGE} {configure_requires} ||=
    $args {META_MERGE} {build_requires};
    
my %filter = (
    MIN_PERL_VERSION     => '6.48',
    META_MERGE           => '6.46',
    AUTHOR               => '6.07',
    ABSTRACT_FROM        => '6.07',
    LICENSE              => '6.07',
);

delete $args {$_} for grep {defined $filter {$_} &&
                            $ExtUtils::MakeMaker::VERSION lt $filter {$_}}
                            keys %args;


WriteMakefile %args;

__END__