X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=af92644ddd0b4062dd8de50441034e4aeeb7bc99;hb=e139ce1642139a961b78ea726bc7afccc28966c8;hp=89496f23f5555cc1b4eba92695609195fabf9acf;hpb=777ffe5c5d240bdb878e027051319dfaddead347;p=catagits%2FWeb-Simple.git diff --git a/Makefile.PL b/Makefile.PL index 89496f2..af92644 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 => { @@ -35,23 +35,12 @@ my %WriteMakefileArgs = ( }, runtime => { requires => { - 'Carp' => '0', 'Encode' => '0', # not core in 5.6 - 'Exporter' => '0', - 'File::Glob' => '0', - 'HTTP::Body' => '0', - 'HTTP::Headers' => '0', - 'HTTP::Request' => '0', - 'IO::Handle' => '0', - 'MIME::Base64' => '0', + 'Exporter' => '5.57', # use Exporter 'import' 'Moo' => '0.009014', 'Plack' => '0.9968', 'Scalar::Util' => '0', # not core in 5.6 - 'Sub::Quote' => '0', 'Syntax::Keyword::Gather' => '1.001', - 'URI' => '0', - 'base' => '0', - 'overload' => '0', 'strictures' => '1', 'warnings::illegalproto' => '0', 'perl' => '5.006', @@ -60,9 +49,6 @@ my %WriteMakefileArgs = ( test => { requires => { 'Data::Dumper::Concise' => '2.020', - 'HTTP::Request::Common' => '0', - 'HTTP::Response' => '0', - 'Socket' => '0', 'Test::More' => '0.88', }, recommends => { @@ -72,7 +58,6 @@ my %WriteMakefileArgs = ( }, }, }, - realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; @@ -92,6 +77,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}} @@ -105,4 +93,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);