1#!perl
2
3package main;
4
5use strict;
6use warnings;
7use ExtUtils::MakeMaker;
8
9my %parms = (
10    NAME                => 'List::Cycle',
11    AUTHOR              => 'Andy Lester <andy@petdance.com>',
12    VERSION_FROM        => 'Cycle.pm',
13    ABSTRACT_FROM       => 'Cycle.pm',
14    PL_FILES            => {},
15    PREREQ_PM => {
16        'Test::More' => '0.98', # For subtest()
17        'Carp'       => 0,
18    },
19    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
20    clean               => { FILES => 'List-Cycle-* cover_db' },
21);
22
23if ( $ExtUtils::MakeMaker::VERSION =~ /^\d\.\d\d$/ and $ExtUtils::MakeMaker::VERSION > 6.30 ) {
24    $parms{LICENSE} = 'artistic_2';
25}
26
27if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
28    $parms{META_MERGE} = {
29        resources => {
30            bugtracker  => 'https://github.com/petdance/list-cycle/issues',
31            repository  => 'git://github.com/petdance/list-cycle.git',
32            license     => 'https://opensource.org/licenses/artistic-license-2.0.php',
33        }
34    };
35}
36
37WriteMakefile( %parms );
38
39sub MY::postamble {
40    my $postamble = <<'MAKE_FRAG';
41critic:
42	perlcritic -1 -q -profile perlcriticrc Cycle.pm t/*.t
43MAKE_FRAG
44
45    return $postamble;
46}
47