]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blob - Makefile.PL
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Thread-Cleanup.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Thread-Cleanup';
8
9 (my $name = $dist) =~ s{-}{::}g;
10
11 (my $file = $dist) =~ s{-}{/}g;
12 $file = "lib/$file.pm";
13
14 my %PREREQ_PM = (
15  'XSLoader' => 0,
16  'threads'  => '1.07',
17 );
18
19 my %META = (
20  configure_requires => {
21   'ExtUtils::MakeMaker' => 0,
22  },
23  build_requires => {
24   'ExtUtils::MakeMaker' => 0,
25   'Test::More'          => 0,
26   'threads::shared'     => '0.91',
27   %PREREQ_PM,
28  },
29  dynamic_config => 1,
30  resources => {
31   bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
32   homepage   => "http://search.cpan.org/dist/$dist/",
33   license    => 'http://dev.perl.org/licenses/',
34   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
35  },
36 );
37
38 WriteMakefile(
39  NAME             => $name,
40  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
41  LICENSE          => 'perl',
42  VERSION_FROM     => $file,
43  ABSTRACT_FROM    => $file,
44  PL_FILES         => {},
45  PREREQ_PM        => \%PREREQ_PM,
46  MIN_PERL_VERSION => '5.008',
47  META_MERGE       => \%META,
48  dist             => {
49   PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
50   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
51  },
52  clean            => {
53   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
54  }
55 );