add ExtUtils::CBuilder to configure requires, and change to dynamic config
[p5sagit/strictures.git] / Makefile.PL
1 use strict;
2 use warnings FATAL => 'all';
3 use ExtUtils::MakeMaker;
4
5 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
6
7 WriteMakefile(
8   NAME => 'strictures',
9   VERSION_FROM => 'lib/strictures.pm',
10   MIN_PERL_VERSION => '5.006',
11
12   META_MERGE => {
13     'meta-spec' => { version => 2 },
14     dynamic_config => 1,
15
16     resources => {
17       # r/w: p5sagit@git.shadowcat.co.uk:strictures.git
18       repository => {
19         url => 'git://git.shadowcat.co.uk/p5sagit/strictures.git',
20         web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/strictures.git',
21         type => 'git',
22       },
23       bugtracker => {
24           mailto => 'bug-strictures@rt.cpan.org',
25           web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=strictures',
26       },
27     },
28
29     prereqs => {
30       runtime => {
31         recommends => {
32           indirect => 0,
33           multidimensional => 0,
34           'bareword::filehandles' => 0,
35         },
36       },
37       configure => {
38         requires => {
39           'ExtUtils::CBuilder' => 0,
40         },
41       },
42     },
43   },
44
45   (eval { require ExtUtils::CBuilder; 1 }
46       and ExtUtils::CBuilder->new->have_compiler)
47       ? (PREREQ_PM => {
48             indirect => 0,
49             multidimensional => 0,
50             'bareword::filehandles' => 0,
51       })
52       : (),
53 );