X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=8c669256f961eb69cf616ceb458bf2693078b604;hb=run_if_script_error;hp=fa8425a41adedd40787134fb243458e55d484080;hpb=b45ef3a34f0c15f2f5ebd59629cc32e594e5e1dc;p=catagits%2FWeb-Simple.git diff --git a/Makefile.PL b/Makefile.PL index fa8425a..8c66925 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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,14 @@ my %WriteMakefileArgs = ( }, runtime => { requires => { - 'Carp' => '0', 'Encode' => '0', # not core in 5.6 'Exporter' => '5.57', # use Exporter 'import' - 'File::Glob' => '0', - 'HTTP::Body' => '0', - 'HTTP::Headers' => '0', - 'HTTP::Request' => '0', - 'IO::Handle' => '0', - 'MIME::Base64' => '0', 'Moo' => '0.009014', 'Plack' => '0.9968', 'Scalar::Util' => '0', # not core in 5.6 - 'Sub::Quote' => '0', 'Syntax::Keyword::Gather' => '1.001', - 'URI' => '0', - 'overload' => '0', 'strictures' => '1', + 'Try::Tiny' => '0', 'warnings::illegalproto' => '0', 'perl' => '5.006', }, @@ -59,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 => { @@ -71,7 +59,6 @@ my %WriteMakefileArgs = ( }, }, }, - realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; @@ -91,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}} @@ -104,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);