X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=e42c819bc9ab8e68e0bdb83c59a3701f00079d0d;hb=8b8f7d449a28026ea60432cd4fd13a6f1d2857e0;hp=2eae5cf608fea8e6840723b2c1e13f7fd506ca63;hpb=fe61c5f5367de24b91420f49699ec49a358ecb06;p=catagits%2FWeb-Simple.git diff --git a/Makefile.PL b/Makefile.PL index 2eae5cf..e42c819 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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,19 +28,37 @@ my %WriteMakefileArgs = ( META_ADD => { prereqs => { + configure => { + requires => { + 'ExtUtils::MakeMaker' => 0, + }, + }, runtime => { requires => { - 'Syntax::Keyword::Gather' => '1.001', - 'Plack' => '0.9968', + 'Encode' => '0', # not core in 5.6 + 'Exporter' => '5.57', # use Exporter 'import' 'Moo' => '0.009014', - 'warnings::illegalproto' => '0.001', - 'Data::Dumper::Concise' => '2.020', + 'Plack' => '0.9968', + 'HTTP::Body' => '1.22', + 'Scalar::Util' => '0', # not core in 5.6 + 'Syntax::Keyword::Gather' => '1.001', + 'strictures' => '1', + 'warnings::illegalproto' => '0', 'perl' => '5.006', }, }, + test => { + requires => { + 'Data::Dumper::Concise' => '2.020', + 'Test::More' => '0.88', + }, + recommends => { + 'Devel::Cycle' => '0', + 'HTTP::Request::AsCGI' => '0', + }, + }, }, }, - realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; @@ -60,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}} @@ -73,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);