shorten Changes header
[catagits/Catalyst-Plugin-Email.git] / Makefile.PL
index e7acf2f..579307b 100644 (file)
@@ -3,13 +3,12 @@ use warnings;
 
 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
@@ -20,11 +19,34 @@ my %WriteMakefileArgs = (
         '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};
@@ -46,7 +68,7 @@ my %mm_req = (
 );
 for (keys %mm_req) {
     unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
-        warn "$_ $@" if $developer;
+        warn "$_ $@" if not -f 'Makefile.PL';
         delete $WriteMakefileArgs{$_};
     }
 }