X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F12_authordeps.pl;h=398722e11e8cfd97be3995440493c654e5f3c397;hb=7975645bb827d021778c61d94eefc27ae330d00d;hp=3e3caa374a721285b942e9b1e450ccde1e9c98a1;hpb=3440100bc0455cf0e7ccbba03754a29ad26ec6d1;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/Makefile.PL.inc/12_authordeps.pl b/maint/Makefile.PL.inc/12_authordeps.pl index 3e3caa3..398722e 100644 --- a/maint/Makefile.PL.inc/12_authordeps.pl +++ b/maint/Makefile.PL.inc/12_authordeps.pl @@ -32,12 +32,19 @@ else { EOW require DBIx::Class::Optional::Dependencies; - my %reqs_for_group = %{DBIx::Class::Optional::Dependencies->req_group_list}; # exclude the rdbms_* groups which are for DBIC users - $opt_testdeps = { - map { %{$reqs_for_group{$_}} } grep { !/^rdbms_|^dist_/ } keys %reqs_for_group - }; + # and the moose-related stuff iff we are under 5.8.3 + $opt_testdeps = DBIx::Class::Optional::Dependencies->req_list_for([ + grep { + !/^rdbms_|^dist_/ + and + ($] > 5.008002 or !/^ (?: test_ )? (?: admin | admin_script | replicated ) $/x ) + } keys %{DBIx::Class::Optional::Dependencies->req_group_list} + ]); + + # this one is "special" - we need it both in optdeps and as a hard dep + delete $opt_testdeps->{'DBD::SQLite'}; print "Including all optional deps\n"; $reqs->{test_requires} = {