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

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   => 'Ron Savage (ron@savage.net.au)',
		ABSTRACT => 'Dispatch requests to CGI::Snapp-based objects',
	) : (),
	clean =>
	{
		FILES => 'blib/* Makefile MANIFEST CGI-Snapp-Dispatch*'
	},
	dist =>
	{
		COMPRESS => 'gzip',
		SUFFIX   => 'gz'
	},
	DISTNAME  => 'CGI-Snapp-Dispatch',
	NAME      => 'CGI::Snapp::Dispatch',
	PL_FILES  => {},
	PREREQ_PM =>
	{
		'Capture::Tiny'		=> 0.44,
		'Carp'				=> 1.20,
		'CGI::PSGI'			=> 0.15,
		'CGI::Snapp'		=> 2.01,
		'Class::Load'		=> 0.23,
		'File::Spec'		=> 3.40,
		'HTTP::Exception'	=> 0.04001,
		'IO::Pipe'			=> 1.15,
		'lib'				=> 0,
		'Log::Handler'		=> 0.88,
		'Moo'				=> 2.002004,
		'parent'			=> 0.234,
		'Proc::Fork'		=> 0.804,
		'strict'			=> 0,
		'Try::Tiny'			=> 0.27,
		'warnings'			=> 0,
	},
	TEST_REQUIRES =>
	{
		'Test::Deep' => 0.120,
		'Test::More' => 1.302052,
		'Test::Pod' => 1.48,
	},
	VERSION_FROM => 'lib/CGI/Snapp/Dispatch.pm',
);

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=CGI-Snapp-Dispatch',
			license		=> 'http://dev.perl.org/licenses/',
			repository	=>
			{
				type	=> 'git',
				url		=> 'https://github.com/ronsavage/CGI-Snapp-Dispatch.git',
				web		=> 'https://github.com/ronsavage/CGI-Snapp-Dispatch',
			},
		},
	};
}

WriteMakefile(%params);