use ExtUtils::MakeMaker;
use strict;
use warnings;

# Call 'perldoc ExtUtils::MakeMaker' for details of how to influence
# the contents of the Makefile that is written.

my %WriteMakefileArgs = (
    NAME                => 'Getopt::Class',
    VERSION_FROM        => 'lib/Getopt/Class.pm',
    AUTHOR              => 'Jacques Deguest (jack@deguest.jp)',
    ABSTRACT            => 'A class based approach for options of Getopt::Long',
    INSTALLDIRS         => ($] < 5.011 ? 'perl' : 'site'),
    PREREQ_PM           => {
        'strict'        => '1.11',
        'warnings'      => '1.44',
        'parent'        => '0.237',
        'DateTime'      => '1.51',
        'DateTime::Format::Strptime' => '1.76',
        'Devel::Confess'=> '0.009004',
        'Getopt::Long'  => '0.44',
        'Module::Generic' => 'v0.12.6',
        'Scalar::Util'  => '1.54',
    	'Tie::Hash'     => '1.05',
		'Nice::Try'		=> 'v0.1.3',
    },
    TEST_REQUIRES       =>
    {
        'Test::More'    => '1.302162',
        'Test::Pod'     => '1.52',
    },
    LICENSE             => 'perl_5',
    MIN_PERL_VERSION    => 5.6.0,
    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean               => { FILES => 'Getlong-Class-*' },
    ( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? () : ( META_MERGE => {
        'meta-spec' => { version => 2 },
        dynamic_config => 1,
        resources => {
        #    homepage    => undef,
            repository  => {
                url         => 'git@git.deguest.jp:jack/Getopt-Class.git',
                web         => 'https://git.deguest.jp/jack/Getopt-Class',
                type        => 'git',
            },
            bugtracker => {
                web         => 'https://git.deguest.jp/jack/Getopt-Class/issues',
                mailto      => 'cpan-bug@deguest.jp',
            },
        },
    })),
);

WriteMakefile(%WriteMakefileArgs);