shorten Changes header
[catagits/Catalyst-Plugin-Email.git] / Makefile.PL
CommitLineData
77a3f907 1use strict;
2use warnings;
3
5a5a0df4 4use ExtUtils::MakeMaker;
5
c3297ae8 6ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml';
7(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
77a3f907 8
9my %WriteMakefileArgs = (
10 NAME => 'Catalyst::Plugin::Email',
11 VERSION_FROM => 'lib/Catalyst/Plugin/Email.pm',
77a3f907 12 AUTHOR => 'Sebastian Riedel <sri@cpan.org>',
13 LICENSE => 'perl_5',
14 MIN_PERL_VERSION => 5.008, # catalyst minimum
5a5a0df4 15 PREREQ_PM => {
77a3f907 16 'Catalyst' => '2.99',
17 'Email::Send' => '0',
18 'Email::MIME' => '0',
19 'Email::MIME::Creator' => '0',
20 },
21 TEST_REQUIRES => {
fc33a233 22 'Test::More' => '0',
5a5a0df4 23 },
cf76467b 24
25 META_MERGE => {
26 'meta-spec' => { version => 2 },
27 dynamic_config => 0,
28 resources => {
29 # r/w: catagits@git.shadowcat.co.uk:Catalyst-Plugin-Email
30 # r/o: git://git.shadowcat.co.uk:catagits/Catalyst-Plugin-Email
31 # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Plugin-Email.git
32 repository => {
33 url => 'https://github.com/perl-catalyst/Catalyst-Plugin-Email.git',
34 web => 'https://github.com/perl-catalyst/Catalyst-Plugin-Email',
35 type => 'git',
36 },
37 bugtracker => {
38 mailto => 'bug-Catalyst-Plugin-Email@rt.cpan.org',
39 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Plugin-Email',
40 },
41 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
42 x_IRC => 'irc://irc.perl.org/#catalyst',
43 },
44 x_deprecated => 1,
45 },
5a5a0df4 46);
77a3f907 47
48die 'need to do a merge with CPAN::Meta::Requirements!!'
c3297ae8 49 if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
77a3f907 50
51if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
52 $WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
53 delete $WriteMakefileArgs{TEST_REQUIRES};
54}
55
56if (!eval { ExtUtils::MakeMaker->VERSION('6.5501') }) {
57 @{$WriteMakefileArgs{PREREQ_PM}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} } =
58 @{$WriteMakefileArgs{BUILD_REQUIRES}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} };
59
60 delete $WriteMakefileArgs{BUILD_REQUIRES};
61}
62
63my %mm_req = (
64 LICENCE => 6.31,
65 META_MERGE => 6.45,
66 META_ADD => 6.45,
67 MIN_PERL_VERSION => 6.48,
68);
69for (keys %mm_req) {
70 unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
c3297ae8 71 warn "$_ $@" if not -f 'Makefile.PL';
77a3f907 72 delete $WriteMakefileArgs{$_};
73 }
74}
75
76WriteMakefile(%WriteMakefileArgs);