]> git.vpit.fr Git - perl/modules/indirect.git/blob - Makefile.PL
Give an explicit value to dynamic_config
[perl/modules/indirect.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 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
16  push @DEFINES, '-DI_FORKSAFE=0';
17 }
18
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
20
21 my $dist = 'indirect';
22
23 my %META = (
24  configure_requires => {
25   'ExtUtils::MakeMaker' => 0,
26  },
27  build_requires => {
28   'ExtUtils::MakeMaker' => 0,
29   'Test::More'          => 0,
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             => 'indirect',
42     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
43     LICENSE          => 'perl',
44     VERSION_FROM     => 'lib/indirect.pm',
45     ABSTRACT_FROM    => 'lib/indirect.pm',
46     PL_FILES         => {},
47     @DEFINES,
48     PREREQ_PM        => {
49         'XSLoader' => 0,
50     },
51     MIN_PERL_VERSION => 5.008,
52     META_MERGE       => \%META,
53     dist             => {
54         PREOP    => 'pod2text lib/indirect.pm > $(DISTVNAME)/README',
55         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
56     },
57     clean            => {
58         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
59     },
60 );