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

my $build = Module::Build->new(
	# look up Module::Build::API for the info!
	'dynamic_config'	=> 0,
	'module_name'		=> 'Test::Reporter::POEGateway',
	'license'		=> 'perl',

	'dist_abstract'		=> "A Test::Reporter::HTTPGateway using the power of POE",
	'dist_author'		=> 'Apocalypse <APOCAL@cpan.org>',

	'create_packlist'	=> 1,
	'create_makefile_pl'	=> 'traditional',
	'create_readme'		=> 1,
	'create_license'	=> 1,
	'sign'			=> 0,

	'test_files'		=> 't/*.t',

	'add_to_cleanup'	=> [ 'META.yml', 'Makefile.PL', 'README', 'Makefile', 'LICENSE' ],	# automatically generated

	'requires'		=> {
		# POE Stuff
		'POE'					=> 0,
		'POE::Session::AttributeBased'		=> '0.09',
		'POE::Component::Server::SimpleHTTP'	=> 0,
		'POE::Component::DirWatch'		=> 0,

		# FIXME POE stuff that Test::Dependencies needs to see
		'POE::Wheel::Run'		=> 0,
		'POE::Filter::Reference'	=> 0,
		'POE::Filter::Line'		=> 0,

		# Misc stuff
		'HTTP::Request::Params'		=> 0,
		'YAML::Tiny'			=> 0,
		'Digest::SHA1'			=> 0,
		'File::Spec'			=> 0,
		'File::Copy'			=> 0,

		# for our mailers
		'Net::SMTP'			=> 0,
		'Email::Simple'			=> 0,
		'Email::MessageID'		=> 0,

		# set our minimum perl version
		'perl'				=> '5.006',
	},

	'recommends'		=> {
		# for our mailers
		'Net::SMTP::SSL'		=> 0,
		'Authen::SASL'			=> 0,
	},

	# include the standard stuff in META.yml
	'meta_merge'	=> {
		'resources'	=> {
			'license'	=> 'http://dev.perl.org/licenses/',
			'homepage'	=> 'http://search.cpan.org/dist/Test-Reporter-POEGateway',
			'bugtracker'	=> 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Reporter-POEGateway',
			'repository'	=> 'http://github.com/apocalypse/perl-test-reporter-poegateway',
		},
	},
);

# all done!
$build->create_build_script;