revert to previous formatting
[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 my %extra_prereqs = (
8   indirect => 0,
9   multidimensional => 0,
10   'bareword::filehandles' => 0,
11 );
12 my $have_compiler
13   = eval { require ExtUtils::CBuilder; 1 }
14   && ExtUtils::CBuilder->new->have_compiler;
15
16 WriteMakefile(
17   NAME => 'strictures',
18   VERSION_FROM => 'lib/strictures.pm',
19   MIN_PERL_VERSION => '5.006',
20
21   META_MERGE => {
22     'meta-spec' => { version => 2 },
23     dynamic_config => 1,
24
25     resources => {
26       # r/w: p5sagit@git.shadowcat.co.uk:strictures.git
27       repository => {
28         url => 'git://git.shadowcat.co.uk/p5sagit/strictures.git',
29         web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/strictures.git',
30         type => 'git',
31       },
32       bugtracker => {
33           mailto => 'bug-strictures@rt.cpan.org',
34           web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=strictures',
35       },
36     },
37
38     prereqs => {
39       configure => {
40         requires => {
41           'ExtUtils::CBuilder' => 0,
42         },
43       },
44       runtime => {
45         ( $] >= 5.008004 && !$have_compiler
46           ? ( recommends => \%extra_prereqs ) : () ),
47       },
48     },
49   },
50
51   ($] >= 5.008004 && $have_compiler
52     ? ( PREREQ_PM => \%extra_prereqs ) : () ),
53 );