]> git.vpit.fr Git - perl/modules/Task-Devel-Cover-Recommended.git/blob - Makefile.PL
Also set BUILD_PREREQS in Makefile.PL
[perl/modules/Task-Devel-Cover-Recommended.git] / Makefile.PL
1 use 5.008002;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Task-Devel-Cover-Recommended';
8
9 (my $name = $dist) =~ s{-}{::}g;
10
11 (my $file = $dist) =~ s{-}{/}g;
12 $file = "lib/$file.pm";
13
14 my $CONFIGURE_PREREQS = {
15  'ExtUtils::MakeMaker' => '0',
16 };
17
18 my $BUILD_PREREQS = {
19  'ExtUtils::MakeMaker' => '0',
20  'Test::Differences'   => '0',
21  'Test::More'          => '0',
22  'Test::Warn'          => '0',
23 };
24
25 my $RUN_PREREQS = {
26  'Browser::Open'               => '0',
27  'Digest::MD5'                 => '0',
28  'JSON::PP'                    => '0',
29  'PPI::HTML'                   => '1.07',
30  'Parallel::Iterator'          => '0',
31  'Pod::Coverage'               => '0.06',
32  'Pod::Coverage::CountParents' => '0',
33  'Storable'                    => '0',
34  'Template'                    => '2.00',
35  'Devel::Cover'                => '0.93',
36 };
37
38 my %META = (
39  configure_requires => $CONFIGURE_PREREQS,
40  build_requires     => $BUILD_PREREQS,
41  dynamic_config     => 0,
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  BUILD_REQUIRES   => $BUILD_PREREQS,
58  PREREQ_PM        => $RUN_PREREQS,
59  MIN_PERL_VERSION => '5.008002',
60  META_MERGE       => \%META,
61  dist             => {
62   PREOP    => "pod2text -u $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 );