avoid needing . in @INC in dev mode
[gitmo/Algorithm-C3.git] / Makefile.PL
CommitLineData
0ea9db7c 1use strict;
2use warnings FATAL => 'all';
3use 5.006;
4use ExtUtils::MakeMaker;
2e659e7b 5(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
0ea9db7c 6
7my %BUILD_DEPS = (
8 'Test::More' => 0.47,
9);
10
11# have to do this since old EUMM dev releases miss the eval $VERSION line
12my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02;
13my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07;
14
15WriteMakefile(
16 NAME => 'Algorithm::C3',
17 VERSION_FROM => 'lib/Algorithm/C3.pm',
18 PREREQ_PM => {
19 'Carp' => 0.01,
20 ($mymeta_works ? () : (%BUILD_DEPS)),
21 },
0a916d83 22 MIN_PERL_VERSION => 5.006,
0ea9db7c 23 $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (),
24 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
25
26 -f 'META.yml' ? () : (META_MERGE => {
27 'meta-spec' => { version => 2 },
28 resources => {
29 # r/w: gitmo@git.shadowcat.co.uk:Algorithm-C3.git
30 repository => {
31 url => 'git://git.shadowcat.co.uk/gitmo/Algorithm-C3.git',
32 web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Algorithm-C3.git',
33 type => 'git',
34 },
35 bugtracker => {
36 mailto => 'bug-Algorithm-C3@rt.cpan.org',
37 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Algorithm-C3',
38 },
39 },
40 }),
41);