-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile.PL
55 lines (53 loc) · 1.47 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
require 5.006;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => "Mozilla::CA",
VERSION_FROM => "lib/Mozilla/CA.pm",
ABSTRACT_FROM => "lib/Mozilla/CA.pm",
AUTHOR => 'Gisle Aas <[email protected]>',
LICENSE => 'open_source',
MIN_PERL_VERSION => 5.006,
META_MERGE => {
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => {
homepage => 'https://github.com/gisle/mozilla-ca',
license => [
'https://www.mozilla.org/media/MPL/2.0/index.txt'
],
bugtracker => {
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Mozilla-CA'
},
repository => {
url => 'https://github.com/gisle/mozilla-ca.git',
web => 'https://github.com/gisle/mozilla-ca',
type => 'git',
},
},
},
TEST_REQUIRES => {
Test => 0,
},
);
BEGIN {
# compatibility with older versions of MakeMaker
my $developer = -d "eg";
my %mm_req = (
LICENCE => 6.31,
META_MERGE => 6.45,
META_ADD => 6.45,
MIN_PERL_VERSION => 6.48,
TEST_REQUIRES => 6.63_03,
);
undef(*WriteMakefile);
*WriteMakefile = sub {
my %arg = @_;
for (keys %mm_req) {
unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
warn "$_ $@" if $developer;
delete $arg{$_};
}
}
ExtUtils::MakeMaker::WriteMakefile(%arg);
};
}