use ExtUtils::MakeMaker;

require 5.006;

WriteMakefile(
    'NAME'	=> 'Time::Piece',
    'VERSION_FROM' => 'Piece.pm', # finds $VERSION
    'AUTHOR' => 'Matt Sergeant',
    'ABSTRACT_FROM' => 'Piece.pm',
    'INSTALLDIRS' => ( ($] >= 5.009005 and $] < 5.011) ? 'perl' : 'site'),
    #'CCFLAGS' => '-Wall -Wextra -Wconversion',
    'PREREQ_PM' => { Exporter => '5.57', 'Scalar::Util' => 0 },
     (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
    'META_MERGE'        => {
        'resources' => {
            'repository'  =>  'https://github.com/Dual-Life/Time-Piece',
        },
    },
);