forked from augensalat/mojolicious-plugin-accesslog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
60 lines (52 loc) · 1.41 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
57
58
59
60
use 5.010001;
use strict;
use warnings;
use version 0.77;
use ExtUtils::MakeMaker;
my $eumm_version = version->parse($ExtUtils::MakeMaker::VERSION);
my $prereq = {
'Mojolicious' => '3.28',
'IO::File' => 0,
'Scalar::Util' => 0,
'Socket' => 0,
'Time::HiRes' => 0,
'File::Spec' => 0,
};
my @args = (
NAME => 'Mojolicious::Plugin::AccessLog',
VERSION_FROM => 'lib/Mojolicious/Plugin/AccessLog.pm',
ABSTRACT => 'An AccessLog Plugin for Mojolicious',
AUTHOR => 'Bernhard Graf',
LICENSE => 'perl_5',
test => {TESTS => 't/*.t'}
);
if ($eumm_version >= 6.46) {
push @args,
META_MERGE => {
requires => {perl => '5.010001'},
resources => {
license => 'http://dev.perl.org/licenses/',
bugtracker => 'https://github.com/augensalat/mojolicious-plugin-accesslog/issues',
repository => 'https://github.com/augensalat/mojolicious-plugin-accesslog.git',
},
};
}
my %eumm_req = (
'POSIX' => 0,
'Time::Local' => 0,
%$prereq,
);
if ($eumm_version >= 6.64) {
push @args,
PREREQ_PM => $prereq,
TEST_REQUIRES => \%eumm_req;
}
elsif ($eumm_version >= 6.5503) {
push @args,
PREREQ_PM => $prereq,
BUILD_REQUIRES => \%eumm_req;
}
else {
push @args, PREREQ_PM => \%eumm_req;
}
WriteMakefile(@args);