From cd3dfea6f99729336b71c3001c13b753d8916f19 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand - Tux" Date: Sun, 17 Feb 2013 11:27:52 +0100 Subject: [PATCH] Support for using uninstalled Test::NoWarnings (RT#82386) --- Changelog | 1 + Makefile.PL | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index d0fdb43..174af4c 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ 0.18 - 17 Feb 2013, H.Merijn Brand * Fixed typo in META (Chorny) + * Support for using uninstalled Test::NoWarnings (RT#82386) 0.17 - 10 Feb 2013, H.Merijn Brand * Deal with spaces in patch descriptions diff --git a/Makefile.PL b/Makefile.PL index 3c1675f..a243170 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,6 +5,7 @@ use strict; use ExtUtils::MakeMaker; +my $eummv = $ExtUtils::MakeMaker::VERSION; my %wm = ( NAME => "Config::Perl::V", @@ -13,14 +14,12 @@ my %wm = ( VERSION_FROM => "V.pm", ABSTRACT_FROM => "V.pm", - PREREQ_PM => { "Config" => 0, - "Test::More" => 0, - "Test::NoWarnings" => 0, - }, - macro => { TARFLAGS => "--format=ustar -c -v -f", - }, + PREREQ_PM => { "Config" => 0, }, + macro => { TARFLAGS => "--format=ustar -c -v -f", }, ); -$ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl"; +$eummv > 6.30 and $wm{LICENSE} = "perl"; +my $section = $eummv > 6.63 ? "TEST_REQUIRES" : "PREREQ_PM"; +$wm{$section}{$_} = 0 for qw( Test::More Test::NoWarnings ); my $rv = WriteMakefile (%wm); -- 2.11.4.GIT