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