Commit | Line | Data |
eae006ee |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
394c3a46 |
3 | use ExtUtils::MakeMaker; |
4 | |
eae006ee |
5 | (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; |
6 | |
27826cd1 |
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 | |
394c3a46 |
16 | WriteMakefile( |
17 | NAME => 'strictures', |
18 | VERSION_FROM => 'lib/strictures.pm', |
21e2b1b2 |
19 | MIN_PERL_VERSION => '5.006', |
de111885 |
20 | |
dfdfcbae |
21 | META_MERGE => { |
5c109c51 |
22 | 'meta-spec' => { version => 2 }, |
e9258733 |
23 | dynamic_config => 1, |
77f9ff76 |
24 | |
de111885 |
25 | resources => { |
26 | # r/w: p5sagit@git.shadowcat.co.uk:strictures.git |
bfbeb6fd |
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 | }, |
de111885 |
36 | }, |
dfdfcbae |
37 | |
088e735f |
38 | prereqs => { |
e9258733 |
39 | configure => { |
40 | requires => { |
41 | 'ExtUtils::CBuilder' => 0, |
42 | }, |
43 | }, |
27826cd1 |
44 | runtime => { |
45 | ( $] >= 5.008004 && !$have_compiler |
46 | ? ( recommends => \%extra_prereqs ) : () ), |
47 | }, |
dfdfcbae |
48 | }, |
de111885 |
49 | }, |
5468e090 |
50 | |
27826cd1 |
51 | ($] >= 5.008004 && $have_compiler |
52 | ? ( PREREQ_PM => \%extra_prereqs ) : () ), |
394c3a46 |
53 | ); |