]> git.vpit.fr Git - perl/modules/autovivification.git/blob - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/autovivification.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my @DEFINES;
8
9 # Threads, Windows and 5.8.x don't seem to be best friends
10 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
11  push @DEFINES, '-DI_MULTIPLICITY=0';
12 }
13
14 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
15
16 my $dist = 'autovivification';
17
18 my %PREREQ_PM = (
19  'XSLoader' => 0,
20 );
21
22 my %META = (
23  configure_requires => {
24   'ExtUtils::MakeMaker' => 0,
25  },
26  build_requires => {
27   'ExtUtils::MakeMaker' => 0,
28   'Test::More'          => 0,
29   %PREREQ_PM,
30  },
31  dynamic_config => 1,
32  resources => {
33   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
34   homepage   => "http://search.cpan.org/dist/$dist/",
35   license    => 'http://dev.perl.org/licenses/',
36   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
37  },
38 );
39
40 WriteMakefile(
41     NAME             => 'autovivification',
42     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
43     LICENSE          => 'perl',
44     VERSION_FROM     => 'lib/autovivification.pm',
45     ABSTRACT_FROM    => 'lib/autovivification.pm',
46     PL_FILES         => {},
47     @DEFINES,
48     PREREQ_PM        => \%PREREQ_PM,
49     MIN_PERL_VERSION => 5.008,
50     META_MERGE       => \%META,
51     dist             => {
52         PREOP    => 'pod2text lib/autovivification.pm > $(DISTVNAME)/README',
53         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
54     },
55     clean            => {
56         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
57     },
58 );