X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=65f4208a4bf959c80ec19b76f2678abd9a85f317;hb=5cc7b5d7a9df21f068c3d9c68fff526ff88c182d;hp=1189236b69b71773ab1f853582611fce9d0a5564;hpb=2c87c763a1f0c1441df268497510b45a45a6bdf3;p=p5sagit%2Fstrictures.git diff --git a/Makefile.PL b/Makefile.PL index 1189236..65f4208 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,7 +23,9 @@ my %META = ( 'Test::More' => 0, } }, runtime => { - requires => { }, + requires => { + perl => '5.006', + }, recommends => { %extra_prereqs, }, @@ -54,6 +56,7 @@ my %MM_ARGS = ( PREREQ_PM => { ($] >= 5.008004 && $have_compiler ? %extra_prereqs : () ) }, + realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); sub parse_args { @@ -89,7 +92,7 @@ $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META } for (qw(configure build test runtime)) { my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES'; my $r = $MM_ARGS{$key} = { - %{$META{prereqs}{$_}{requires}}, + %{$META{prereqs}{$_}{requires} || {}}, %{delete $MM_ARGS{$key} || {}}, }; defined $r->{$_} or delete $r->{$_} for keys %$r;