use ExtUtils::MakeMaker;
-my $developer = -f '.gitignore';
-ExtUtils::MakeMaker->VERSION('7.00') if $developer;
+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',
- ABSTRACT => 'Send emails with Catalyst',
AUTHOR => 'Sebastian Riedel <sri@cpan.org>',
LICENSE => 'perl_5',
MIN_PERL_VERSION => 5.008, # catalyst minimum
'Email::MIME::Creator' => '0',
},
TEST_REQUIRES => {
+ 'Test::More' => '0',
+ },
+
+ META_MERGE => {
+ 'meta-spec' => { version => 2 },
+ dynamic_config => 0,
+ resources => {
+ # r/w: catagits@git.shadowcat.co.uk: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 => 'bug-Catalyst-Plugin-Email@rt.cpan.org',
+ 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 $developer && exists $WriteMakefileArgs{BUILD_REQUIRES};
+ if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
$WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
);
for (keys %mm_req) {
unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
- warn "$_ $@" if $developer;
+ warn "$_ $@" if not -f 'Makefile.PL';
delete $WriteMakefileArgs{$_};
}
}