1use 5.006;
2use strict;
3use ExtUtils::MakeMaker ();
4
5WriteMakefile(
6	NAME             => 'Test::NoWarnings',
7	ABSTRACT         => "Make sure you didn't emit any warnings while testing",
8	VERSION_FROM     => 'lib/Test/NoWarnings.pm',
9	AUTHOR           => 'Fergal Daly <fergal@esatclear.ie>',
10	LICENSE          => 'lgpl',
11	MIN_PERL_VERSION => '5.006',
12	BUILD_REQUIRES   => {
13		'Test::More'    => '0.47',
14		'Test::Tester'  => '0.107',
15	},
16	PREREQ_PM => {
17		'Test::Builder' => '0.86',
18	},
19	META_MERGE => {
20		resources => {
21			repository => 'http://svn.ali.as/cpan/trunk/Test-NoWarnings',
22		},
23	},
24);
25
26# Written by Alexandr Ciornii, version 0.20. Added by eumm-upgrade.
27# Modified by ADAMK to make it look a little cleaner.
28sub WriteMakefile {
29	my %params = @_;
30	my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
31	die "License not specified" unless exists $params{LICENSE};
32	if ( $params{BUILD_REQUIRES} and $eumm_version < 6.5503 ) {
33		#EUMM 6.5502 has problems with BUILD_REQUIRES
34		$params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
35		delete $params{BUILD_REQUIRES};
36	}
37	delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
38	delete $params{META_MERGE}       if $eumm_version < 6.46;
39	delete $params{LICENSE}          if $eumm_version < 6.31;
40
41	ExtUtils::MakeMaker::WriteMakefile(%params);
42}
43