1use strict;
2use warnings;
3use ExtUtils::MakeMaker;
4
5# Normalize version strings like 6.30_02 to 6.3002,
6# so that we can do numerical comparisons on it.
7my $eumm_version = $ExtUtils::MakeMaker::VERSION;
8$eumm_version =~ s/_//;
9
10WriteMakefile(
11    NAME                => '[d2% appname %2d]',
12    AUTHOR              => q{YOUR NAME <youremail@example.com>},
13    VERSION_FROM        => '[d2% appfile %2d]',
14    ABSTRACT            => 'YOUR APPLICATION ABSTRACT',
15    ($eumm_version >= 6.3001
16      ? ('LICENSE'=> 'perl')
17      : ()),
18    PL_FILES            => {},
19    PREREQ_PM => {
20        'Test::More' => 0,
21        'YAML'       => 0,
22        'Dancer2'     => [d2% dancer_version %2d],
23    },
24    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
25    clean               => { FILES => '[d2% cleanfiles %2d]-*' },
26);
27