forked from redhotpenguin/perl-XML-Parser-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
60 lines (48 loc) · 1.19 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
#!/usr/bin/perl
use strict;
use warnings;
use ExtUtils::MakeMaker 6.30;
my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) {
# developer release
$mm_ver = eval $mm_ver;
die $@ if $@;
}
my @REQUIRES = (
'strict' => 0,
'warnings' => 0,
);
my @TEST_REQUIRES = (
'Test::More' => 0.88,
'Test::Requires' => 0.06,
'diagnostics' => 0,
);
push(@REQUIRES, @TEST_REQUIRES) if $mm_ver < 6.64;
WriteMakefile(
NAME => 'XML::Parser::Lite',
VERSION_FROM => 'lib/XML/Parser/Lite.pm',
PREREQ_PM => { @REQUIRES },
ABSTRACT_FROM => 'lib/XML/Parser/Lite.pm',
AUTHOR => 'Byrne Reese (byrne@majordojo.com)',
META_MERGE => {
resources => {
repository =>
'https://github.com/redhotpenguin/perl-XML-Parser-Lite',
},
},
($mm_ver >= 6.48
? (MIN_PERL_VERSION => 5.006)
: ()
),
($mm_ver >= 6.31 ? (LICENSE => 'perl') : ()),
($mm_ver >= 6.64
? (TEST_REQUIRES => { @TEST_REQUIRES })
: ()
),
($mm_ver >= 6.52
? (CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 6.30,
})
: ()
),
);