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