]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blob - Makefile.PL
8a8a746f38c049355303b1e5383b25a95998466c
[perl/modules/Lexical-Types.git] / Makefile.PL
1 use 5.008001;
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 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
16  push @DEFINES, '-DLT_FORKSAFE=0';
17 }
18
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
20
21 my $dist = 'Lexical-Types';
22
23 (my $name = $dist) =~ s{-}{::}g;
24
25 (my $file = $dist) =~ s{-}{/}g;
26 $file = "lib/$file.pm";
27
28 my %PREREQ_PM = (
29  'Carp'     => 0,
30  'XSLoader' => 0,
31 );
32
33 my %META = (
34  configure_requires => {
35   'ExtUtils::MakeMaker' => 0,
36  },
37  build_requires => {
38   'ExtUtils::MakeMaker' => 0,
39   'Test::More'          => 0,
40   'constant'            => 0,
41   %PREREQ_PM,
42  },
43  dynamic_config => 1,
44  resources => {
45   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
46   homepage   => "http://search.cpan.org/dist/$dist/",
47   license    => 'http://dev.perl.org/licenses/',
48   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
49  },
50 );
51
52 WriteMakefile(
53  NAME             => $name,
54  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
55  LICENSE          => 'perl',
56  VERSION_FROM     => $file,
57  ABSTRACT_FROM    => $file,
58  PL_FILES         => {},
59  @DEFINES,
60  PREREQ_PM        => \%PREREQ_PM,
61  MIN_PERL_VERSION => 5.008001,
62  META_MERGE       => \%META,
63  dist             => {
64   PREOP    => "pod2text $file > \$(DISTVNAME)/README",
65   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
66  },
67  clean            => {
68   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
69  }
70 );