-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
76 lines (66 loc) · 2.54 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
use strict;
use warnings;
use ExtUtils::MakeMaker;
ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml';
(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
my %WriteMakefileArgs = (
NAME => 'Catalyst::Plugin::Email',
VERSION_FROM => 'lib/Catalyst/Plugin/Email.pm',
AUTHOR => 'Sebastian Riedel <[email protected]>',
LICENSE => 'perl_5',
MIN_PERL_VERSION => 5.008, # catalyst minimum
PREREQ_PM => {
'Catalyst' => '2.99',
'Email::Send' => '0',
'Email::MIME' => '0',
'Email::MIME::Creator' => '0',
},
TEST_REQUIRES => {
'Test::More' => '0',
},
META_MERGE => {
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => {
# r/w: [email protected]:Catalyst-Plugin-Email
# r/o: git://git.shadowcat.co.uk:catagits/Catalyst-Plugin-Email
# web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Plugin-Email.git
repository => {
url => 'https://github.com/perl-catalyst/Catalyst-Plugin-Email.git',
web => 'https://github.com/perl-catalyst/Catalyst-Plugin-Email',
type => 'git',
},
bugtracker => {
mailto => '[email protected]',
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Plugin-Email',
},
x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
x_IRC => 'irc://irc.perl.org/#catalyst',
},
x_deprecated => 1,
},
);
die 'need to do a merge with CPAN::Meta::Requirements!!'
if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
$WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{TEST_REQUIRES};
}
if (!eval { ExtUtils::MakeMaker->VERSION('6.5501') }) {
@{$WriteMakefileArgs{PREREQ_PM}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} } =
@{$WriteMakefileArgs{BUILD_REQUIRES}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} };
delete $WriteMakefileArgs{BUILD_REQUIRES};
}
my %mm_req = (
LICENCE => 6.31,
META_MERGE => 6.45,
META_ADD => 6.45,
MIN_PERL_VERSION => 6.48,
);
for (keys %mm_req) {
unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
warn "$_ $@" if not -f 'Makefile.PL';
delete $WriteMakefileArgs{$_};
}
}
WriteMakefile(%WriteMakefileArgs);