From: Robert Sedlacek Date: Wed, 26 Aug 2015 17:34:59 +0000 (+0000) Subject: dependencies X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4899ea07f85fcd15272a389fca0ad534cd19b3bc;p=dbsrgits%2FDBIx-Class-RowCountStatistics.git dependencies --- diff --git a/Makefile.PL b/Makefile.PL index d4736e6..1c86e27 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,7 +4,24 @@ use ExtUtils::MakeMaker; (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; +my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; + +my %_test_req = ( + 'Test::More' => 0, +); +my %_build_req = ( + ($eumm_version < 6.63_03) ? (%_test_req) : (), +); +my %_req = ( + ($eumm_version < 6.55_01) ? (%_build_req) : (), + 'DBIx::Class' => 0, +); + WriteMakefile( NAME => 'CtrlO::DBIC::Cursor::RowCountStatistics', - VERSION_FROM => 'lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm' + VERSION_FROM => 'lib/CtrlO/DBIC/Cursor/RowCountStatistics.pm', + LICENSE => undef, + TEST_REQUIRES => \%_test_req, + BUILD_REQUIRES => \%_build_req, + PREREQ_PM => \%_req, );