throw error on failed new in run_if_script
[catagits/Web-Simple.git] / Makefile.PL
index e61e85d..8c66925 100644 (file)
@@ -1,6 +1,6 @@
 use strict;
 use warnings FATAL => 'all';
-use 5.008001;
+use 5.006;
 use ExtUtils::MakeMaker;
 
 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
@@ -13,10 +13,10 @@ my %WriteMakefileArgs = (
     'meta-spec' => { version => 2 },
     dynamic_config => 0,
     resources => {
-      # r/w: p5sagit@git.shadowcat.co.uk:Web-Simple.git
+      # r/w: catagits@git.shadowcat.co.uk:Web-Simple.git
       repository => {
-        url => 'git://git.shadowcat.co.uk/p5sagit/Web-Simple.git',
-        web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Web-Simple.git',
+        url => 'git://git.shadowcat.co.uk/catagits/Web-Simple.git',
+        web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Web-Simple.git',
         type => 'git',
       },
       bugtracker => {
@@ -28,28 +28,21 @@ my %WriteMakefileArgs = (
 
   META_ADD => {
     prereqs => {
+      configure => {
+        requires => {
+          'ExtUtils::MakeMaker' => 0,
+        },
+      },
       runtime => {
         requires => {
-          'Carp' => '0',
-          'Encode' => '0',
-          'Exporter' => '0',
-          'File::Glob' => '0',
-          'HTTP::Body' => '0',
-          'HTTP::Headers' => '0',
-          'HTTP::Request' => '0',
-          'IO::Handle' => '0',
-          'MIME::Base64' => '0',
+          'Encode' => '0',              # not core in 5.6
+          'Exporter' => '5.57',         # use Exporter 'import'
           'Moo' => '0.009014',
           'Plack' => '0.9968',
-          'Scalar::Util' => '0',
-          'Sub::Quote' => '0',
+          'Scalar::Util' => '0',        # not core in 5.6
           'Syntax::Keyword::Gather' => '1.001',
-          'URI' => '0',
-          'base' => '0',
-          'overload' => '0',
-          'strict' => '0',
           'strictures' => '1',
-          'warnings' => '0',
+          'Try::Tiny' => '0',
           'warnings::illegalproto' => '0',
           'perl' => '5.006',
         },
@@ -57,9 +50,6 @@ my %WriteMakefileArgs = (
       test => {
         requires => {
           'Data::Dumper::Concise' => '2.020',
-          'HTTP::Request::Common' => '0',
-          'HTTP::Response' => '0',
-          'Socket' => '0',
           'Test::More' => '0.88',
         },
         recommends => {
@@ -69,7 +59,6 @@ my %WriteMakefileArgs = (
       },
     },
   },
-  realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] },
 );
 
 my $eumm_version  = eval $ExtUtils::MakeMaker::VERSION;
@@ -89,6 +78,9 @@ for (qw(configure build test runtime)) {
 
 $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;
 
+die 'attention developer: you need to do a sane meta merge here!'
+  if keys %{$WriteMakefileArgs{BUILD_REQUIRES}};
+
 $WriteMakefileArgs{BUILD_REQUIRES} = {
     %{$WriteMakefileArgs{BUILD_REQUIRES} || {}},
     %{delete $WriteMakefileArgs{TEST_REQUIRES}}
@@ -102,4 +94,13 @@ $WriteMakefileArgs{PREREQ_PM} = {
 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
   if $eumm_version < 6.51_03;
 
+delete $WriteMakefileArgs{MIN_PERL_VERSION}
+  if $eumm_version < 6.48;
+
+delete @WriteMakefileArgs{qw(META_ADD META_MERGE)}
+  if $eumm_version < 6.46;
+
+delete $WriteMakefileArgs{LICENSE}
+  if $eumm_version < 6.31;
+
 WriteMakefile(%WriteMakefileArgs);