]> git.vpit.fr Git - perl/modules/indirect.git/blob - Makefile.PL
Quote version numbers in Makefile.PL
[perl/modules/indirect.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' and "$]" < 5.009) {
11  push @DEFINES, '-DI_MULTIPLICITY=0';
12 }
13
14 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' and "$]" < 5.010_001) {
16  push @DEFINES, '-DI_FORKSAFE=0';
17 }
18
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
20
21 my $dist = 'indirect';
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   %PREREQ_PM,
41  },
42  dynamic_config => 1,
43  resources => {
44   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
45   homepage   => "http://search.cpan.org/dist/$dist/",
46   license    => 'http://dev.perl.org/licenses/',
47   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
48  },
49 );
50
51 WriteMakefile(
52  NAME             => $name,
53  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
54  LICENSE          => 'perl',
55  VERSION_FROM     => $file,
56  ABSTRACT_FROM    => $file,
57  PL_FILES         => {},
58  @DEFINES,
59  PREREQ_PM        => \%PREREQ_PM,
60  MIN_PERL_VERSION => '5.008001',
61  META_MERGE       => \%META,
62  dist             => {
63   PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
64   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
65  },
66  clean            => {
67   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt*"
68  },
69 );