The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

require 5.008001;

use ExtUtils::MakeMaker;

# ----------------------

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my(%params) =
(
	($] ge '5.005') ?
	(
		AUTHOR   => 'Adam Kennedy <adamk@cpan.org>',
		ABSTRACT => 'Read/Write .ini style files with as little code as possible',
	) : (),
	clean =>
	{
		FILES => 'blib/* Makefile MANIFEST Config-Tiny-*'
	},
	dist =>
	{
		COMPRESS => 'gzip',
		SUFFIX   => 'gz'
	},
	BUILD_REQUIRES =>
	{
		# Skip on Windows to avoid breaking ActivePerl PPMs
		# 0.47 means 5.6.2 or newer, which everyone on Win32 has.
		($^O eq 'MSWin32' ? () : ('Test::More' => '0.47') ),
	},
	DISTNAME     => 'Config-Tiny',
	NAME         => 'Config::Tiny',
	PL_FILES    => {},
	LICENSE      => 'perl',
	PREREQ_PM    =>
	{
		'File::Spec' => 3.30,
		'File::Temp' => 0.22,
		'perl'       => '5.8.1', # For the utf stuff.
		'strict'     => 0,
		'UNIVERSAL'  => 0,
		'utf8'       => 0,
	},
	VERSION_FROM => 'lib/Config/Tiny.pm',
	INSTALLDIRS  => 'site',
	EXE_FILES    => [],
);

if ( ($ExtUtils::MakeMaker::VERSION =~ /^\d\.\d\d$/) && ($ExtUtils::MakeMaker::VERSION > 6.30) )
{
	$params{LICENSE} = 'perl';
}

if ($ExtUtils::MakeMaker::VERSION ge '6.46')
{
	$params{META_MERGE} =
	{
		'meta-spec' =>
		{
			version => 2,
		},
		resources   =>
		{
			bugtracker => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Config-Tiny',
			license    => 'http://opensource.org/licenses/Perl',
			repository =>
			{
				type => 'git',
				url  => 'https://github.com/ronsavage/Config-Tiny.git',
				web  => 'https://github.com/ronsavage/Config-Tiny',
			},
		},
	};
}

WriteMakefile(%params);