require the pragmas if a compiler is present
[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 => 0,
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     },
38   },
39
40   (eval { require ExtUtils::CBuilder; 1 }
41       and ExtUtils::CBuilder->new->have_compiler)
42       ? (PREREQ_PM => {
43             indirect => 0,
44             multidimensional => 0,
45             'bareword::filehandles' => 0,
46       })
47       : (),
48 );