]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blob - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/Sub-Nary.git] / Makefile.PL
1 use 5.008001;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Sub-Nary';
8
9 my %PREREQ_PM = (
10  'B'        => 0,
11  'Carp'     => 0,
12  'XSLoader' => 0,
13 );
14
15 my %META = (
16  configure_requires => {
17   'ExtUtils::MakeMaker' => 0,
18  },
19  build_requires => {
20   'ExtUtils::MakeMaker' => 0,
21   'Test::More'          => 0,
22   %PREREQ_PM,
23  },
24  dynamic_config => 0,
25  resources => {
26   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
27   homepage   => "http://search.cpan.org/dist/$dist/",
28   license    => 'http://dev.perl.org/licenses/',
29   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
30  },
31 );
32
33 WriteMakefile(
34     NAME             => 'Sub::Nary',
35     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
36     LICENSE          => 'perl',
37     VERSION_FROM     => 'lib/Sub/Nary.pm',
38     ABSTRACT_FROM    => 'lib/Sub/Nary.pm',
39     PL_FILES         => {},
40     PREREQ_PM        => \%PREREQ_PM,
41     MIN_PERL_VERSION => 5.008001,
42     META_MERGE       => \%META,
43     dist             => {
44         PREOP    => 'pod2text lib/Sub/Nary.pm > $(DISTVNAME)/README',
45         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
46     },
47     clean            => {
48         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
49     }
50 );
51
52 1;
53
54 package MY;
55
56 sub postamble {
57  my $cv = join ' -coverage ', 'cover',
58                             qw/statement branch condition path subroutine time/;
59  <<POSTAMBLE;
60 cover test_cover:
61         $cv -test
62 POSTAMBLE
63 }