]> git.vpit.fr Git - perl/modules/Perl-Critic-Policy-Dynamic-NoIndirect.git/blob - Makefile.PL
Build the $name and the main $file from $dist
[perl/modules/Perl-Critic-Policy-Dynamic-NoIndirect.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Perl-Critic-Policy-Dynamic-NoIndirect';
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  'Carp'                        => 0,
16  'Perl::Critic::Utils'         => 0,
17  'Perl::Critic::DynamicPolicy' => 0,
18  'base'                        => 0,
19  'indirect'                    => '0.16',
20 );
21
22 my %META = (
23  configure_requires => {
24   'ExtUtils::MakeMaker' => 0,
25  },
26  build_requires => {
27   'ExtUtils::MakeMaker'     => 0,
28   'Perl::Critic::TestUtils' => 0,
29   'Test::More'              => 0,
30   %PREREQ_PM,
31  },
32  dynamic_config => 0,
33  resources => {
34   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
35   homepage   => "http://search.cpan.org/dist/$dist/",
36   license    => 'http://dev.perl.org/licenses/',
37   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
38  },
39 );
40
41 WriteMakefile(
42     NAME             => $name,
43     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
44     LICENSE          => 'perl',
45     VERSION_FROM     => $file,
46     ABSTRACT_FROM    => $file,
47     PL_FILES         => {},
48     PREREQ_PM        => \%PREREQ_PM,
49     MIN_PERL_VERSION => 5.008,
50     META_MERGE       => \%META,
51     dist             => {
52         PREOP      => "pod2text $file > \$(DISTVNAME)/README",
53         COMPRESS   => 'gzip -9f', SUFFIX => 'gz'
54     },
55     clean            => {
56         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
57     },
58 );