]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blob - Makefile.PL
Give an explicit value to dynamic_config
[perl/modules/Lexical-Types.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, '-DLT_MULTIPLICITY=0';
12 }
13
14 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
15
16 my $dist = 'Lexical-Types';
17
18 my %META = (
19  configure_requires => {
20   'ExtUtils::MakeMaker' => 0,
21  },
22  build_requires => {
23   'ExtUtils::MakeMaker' => 0,
24   'Test::More'          => 0,
25   'constant'            => 0,
26  },
27  dynamic_config => 1,
28  resources => {
29   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
30   homepage   => "http://search.cpan.org/dist/$dist/",
31   license    => 'http://dev.perl.org/licenses/',
32   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
33  },
34 );
35
36 WriteMakefile(
37     NAME             => 'Lexical::Types',
38     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
39     LICENSE          => 'perl',
40     VERSION_FROM     => 'lib/Lexical/Types.pm',
41     ABSTRACT_FROM    => 'lib/Lexical/Types.pm',
42     PL_FILES         => {},
43     @DEFINES,
44     PREREQ_PM        => {
45         'Carp'          => 0,
46         'XSLoader'      => 0,
47     },
48     MIN_PERL_VERSION => 5.008,
49     META_MERGE       => \%META,
50     dist             => {
51         PREOP    => 'pod2text lib/Lexical/Types.pm > $(DISTVNAME)/README',
52         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
53     },
54     clean            => {
55         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
56     }
57 );