]> git.vpit.fr Git - perl/modules/indirect.git/blob - Makefile.PL
Always get the hint directly from %^H
[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' && $^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 $name = $dist) =~ s{-}{::}g;
24
25 (my $file = $dist) =~ s{-}{/}g;
26 $file = "lib/$file.pm";
27
28 my %PREREQ_PM = (
29  'XSLoader' => 0,
30 );
31
32 my %META = (
33  configure_requires => {
34   'ExtUtils::MakeMaker' => 0,
35  },
36  build_requires => {
37   'ExtUtils::MakeMaker' => 0,
38   'Test::More'          => 0,
39   %PREREQ_PM,
40  },
41  dynamic_config => 1,
42  resources => {
43   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
44   homepage   => "http://search.cpan.org/dist/$dist/",
45   license    => 'http://dev.perl.org/licenses/',
46   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
47  },
48 );
49
50 WriteMakefile(
51  NAME             => $name,
52  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
53  LICENSE          => 'perl',
54  VERSION_FROM     => $file,
55  ABSTRACT_FROM    => $file,
56  PL_FILES         => {},
57  @DEFINES,
58  PREREQ_PM        => \%PREREQ_PM,
59  MIN_PERL_VERSION => 5.008001,
60  META_MERGE       => \%META,
61  dist             => {
62   PREOP    => "pod2text $file > \$(DISTVNAME)/README",
63   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
64  },
65  clean            => {
66   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
67  },
68 );