]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blob - Makefile.PL
This is 0.12
[perl/modules/re-engine-Plugin.git] / Makefile.PL
1 use 5.010;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 use Config;
8
9 if ($Config{d_cplusplus}) {
10  print STDERR <<'FAILPLUSPLUS';
11 Configuration aborted: C++ compilers are not supported
12
13     Your perl has been built with a C++ compiler, which is then handed to
14     XS extensions as if it were a proper C compiler. This extension is
15     written in C, and naturally only supports C compilers, so it cannot be
16     built with your perl.
17
18     Note that building perl with a C++ compiler is only supposed to be done
19     by core developers in order to check that the perl headers can be
20     included from C++ code. Its use in the wild is not supported by the
21     perl5 porters. If your vendor has built its perl binary with a C++
22     compiler, please consider reporting this issue to them.
23
24     This text will be displayed 10 seconds, and then the configuration
25     script will exit.
26 FAILPLUSPLUS
27  sleep 10;
28  exit 0;
29 }
30
31 my @DEFINES;
32
33 # Fork emulation got "fixed" in 5.10.1
34 if ($^O eq 'MSWin32' && "$]" < 5.010_001) {
35  push @DEFINES, '-DXSH_FORKSAFE=0';
36 }
37
38 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
39
40 my $dist = 're-engine-Plugin';
41
42 (my $name = $dist) =~ s{-}{::}g;
43
44 my %PREREQ_PM = (
45  'XSLoader' => 0,
46 );
47
48 my %BUILD_REQUIRES = (
49  'Config'              => 0,
50  'ExtUtils::MakeMaker' => 0,
51  'Test::More'          => 0,
52  'lib'                 => 0,
53  %PREREQ_PM,
54 );
55
56 my %META = (
57  configure_requires => {
58   'Config'              => 0,
59   'ExtUtils::MakeMaker' => 0,
60  },
61  build_requires => {
62   %BUILD_REQUIRES,
63  },
64  dynamic_config => 1,
65  resources => {
66   bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
67   homepage   => "http://search.cpan.org/dist/$dist/",
68   license    => 'http://dev.perl.org/licenses/',
69   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
70  },
71 );
72
73 my @AUTHORS = (
74  "\x{C6}var Arnfj\x{F6}r\x{F0} Bjarmason <avar\@cpan.org>",
75  'Vincent Pit <perl@profvince.com>',
76 );
77
78 my $AUTHOR = $ExtUtils::MakeMaker::VERSION < 6.58 ? $AUTHORS[0]
79                                                   : \@AUTHORS;
80
81 WriteMakefile(
82  NAME             => $name,
83  AUTHOR           => $AUTHOR,
84  LICENSE          => 'perl',
85  ABSTRACT_FROM    => 'Plugin.pod',
86  VERSION_FROM     => 'Plugin.pm',
87  PL_FILES         => {},
88  @DEFINES,
89  PREREQ_PM        => \%PREREQ_PM,
90  MIN_PERL_VERSION => '5.010',
91  META_MERGE       => \%META,
92  dist             => {
93   PREOP    => 'pod2text -u Plugin.pod > $(DISTVNAME)/README',
94   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
95  },
96  clean            => {
97   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
98  },
99  test             => {
100   TESTS => 't/*.t t/*/*.t t/*/*/*.t',
101  },
102 );