]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blob - Makefile.PL
Bump copyright year
[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 my @DEFINES;
8
9 # Fork emulation got "fixed" in 5.10.1
10 if ($^O eq 'MSWin32' && "$]" < 5.010_001) {
11  push @DEFINES, '-DXSH_FORKSAFE=0';
12 }
13
14 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
15
16 my $dist = 're-engine-Plugin';
17
18 (my $name = $dist) =~ s{-}{::}g;
19
20 my %PREREQ_PM = (
21  'XSLoader' => 0,
22 );
23
24 my %META = (
25  configure_requires => {
26   'ExtUtils::MakeMaker' => 0,
27  },
28  build_requires => {
29   'ExtUtils::MakeMaker' => 0,
30   'Test::More'          => 0,
31   %PREREQ_PM,
32  },
33  dynamic_config => 1,
34  resources => {
35   bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
36   homepage   => "http://search.cpan.org/dist/$dist/",
37   license    => 'http://dev.perl.org/licenses/',
38   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
39  },
40 );
41
42 my @AUTHORS = (
43  "\x{C6}var Arnfj\x{F6}r\x{F0} Bjarmason <avar\@cpan.org>",
44  'Vincent Pit <perl@profvince.com>',
45 );
46
47 my $AUTHOR = $ExtUtils::MakeMaker::VERSION < 6.58 ? $AUTHORS[0]
48                                                   : \@AUTHORS;
49
50 WriteMakefile(
51  NAME             => $name,
52  AUTHOR           => $AUTHOR,
53  LICENSE          => 'perl',
54  ABSTRACT_FROM    => 'Plugin.pod',
55  VERSION_FROM     => 'Plugin.pm',
56  PL_FILES         => {},
57  @DEFINES,
58  PREREQ_PM        => \%PREREQ_PM,
59  MIN_PERL_VERSION => '5.010',
60  META_MERGE       => \%META,
61  dist             => {
62   PREOP    => 'pod2text -u Plugin.pod > $(DISTVNAME)/README',
63   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
64  },
65  clean            => {
66   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
67  },
68  test             => {
69   TESTS => 't/*.t t/*/*.t t/*/*/*.t',
70  },
71 );