use strict;
use warnings FATAL => 'all';
use Module::Build;

Module::Build->new(
    name                 => 'MouseX-SingletonMethod',
    module_name          => 'MouseX::SingletonMethod',
    dist_author          => 'Hideaki Ohno<hide.o.j55@gmail.com>',
    license              => 'perl',
    recursive_test_files => 1,
    dynamic_config       => 0,
    build_requires       => {
        'Test::More'  => '0.98',
    },
    configure_requires => { 'Module::Build' => '0.38' },
    requires           => {
        'perl'        => '5.6.2',
        'Mouse'       => 0,
        'Mouse::Role' => 0,
    },
    no_index   => { 'directory'       => [ 't', 'xt', 'inc', 'eg' ] },
    test_files => ( -d '.git' || $ENV{RELEASE_TESTING} ) ? [qw(t/ xt/)] : ['t/'],
    create_readme  => 1,
    add_to_cleanup => ['MouseX-SingletonMethod-*'],
    meta_merge     => {
        keywords  => [qw/Mouse/],
        resources => {
            repository => 'git://github.com/hideo55/p5-MouseX-SingletonMethod.git',
            bugtracker => 'https://github.com/hideo55/p5-MouseX-SingletonMethod/issues',
        },
    },
)->create_build_script;
