File: Makefile.PL

package info (click to toggle)
libperl-critic-pulp-perl 100-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,696 kB
  • sloc: perl: 13,798; sh: 295; makefile: 6; ansic: 1
file content (136 lines) | stat: -rwxr-xr-x 4,791 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/usr/bin/perl -w

# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2017 Kevin Ryde

# This file is part of Perl-Critic-Pulp.

# Perl-Critic-Pulp is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 3, or (at your option) any
# later version.
#
# Perl-Critic-Pulp is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with Perl-Critic-Pulp.  If not, see <http://www.gnu.org/licenses/>.

use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile
  (NAME         => 'Perl::Critic::Pulp',
   ABSTRACT     => 'Some add-on policies for Perl::Critic.',
   VERSION_FROM => 'lib/Perl/Critic/Pulp.pm',
   AUTHOR       => 'Kevin Ryde <user42_kevin@yahoo.com.au>',
   LICENSE      => 'gpl_3',
   SIGN         => 1,
   MIN_PERL_VERSION => '5.006',

   PREREQ_PM => {
                 # 1.220 for its incompatible PPI::Statement::Sub->prototype()
                 'PPI' => '1.220',
                 'PPI::Document' => 0,
                 # actually PPI::Dumper only used in the .t scripts if
                 # there's an error ...
                 'PPI::Dumper' => 0,

                 # 1.082 or some such for new style parameter specs
                 # 1.084 for highest_explicit_perl_version() method
                 'Perl::Critic' => '1.084',
                 # parts of Perl::Critic, used so name them explicitly
                 'Perl::Critic::Policy' => '1.084',
                 # Utils 1.100 for precedence_of() supporting -f etc filetests
                 'Perl::Critic::Utils' => '1.100',
                 'Perl::Critic::Utils::PPI' => 0,
                 'Perl::Critic::Violation' => 0,

                 # Required by Perl::Critic itself anyway.
                 # 1.02 for avoiding leaks in perl 5.8, probably
                 # something newer has more merit though
                 'IO::String' => '1.02',

                 # Also used by Perl::Critic itself.  Maybe should
                 # require 0.24 for various XS bugfixes.
                 'List::MoreUtils' => '0.24', # 0.24 for stack growing, maybe

                 # Could make this optional, but it doesn't drag in anything
                 # outrageous.
                 'Pod::MinimumVersion' => 50, # v.50 fix text in =item etc

                 # Builtin in recent perl anyway.
                 'List::Util' => 0,
                 'Test::More' => 0,
                 'Scalar::Util' => 0,

                 # Required by Perl::Critic itself anyway,
                 # and comes with perl 5.10 anyway too.
                 'version' => 0,

                 'Pod::Escapes' => 0,
                 'Pod::Parser' => 0,
                 'Pod::ParseLink' => 0,
                },

   META_MERGE =>
   { 'meta-spec' => { version => 2 },
     resources =>
     { homepage => 'http://user42.tuxfamily.org/perl-critic-pulp/index.html',
       license  => 'http://www.gnu.org/licenses/gpl.html',
     },
     # don't index "package Perl::MinimumVersion" additions there
     no_index => { package => [ 'Perl::MinimumVersion' ],
                   directory=>['devel','xt'],
                 },

     recommends => { 'Perl::MinimumVersion' => 0,
                   },
     prereqs =>
     { test =>
       { suggests =>
         { 'Perl::MinimumVersion' => 0,
         },
       },
     },

     optional_features =>
     { maximum_policies =>
       { description => 'Have the policies check as much as possible.',
         prereqs =>
         { runtime =>
           { requires => { 'Perl::MinimumVersion' => 0,
                         },
           },
         },
       },
     },
   },
  );


# maximum_devel =>
# { description => 'Stuff used variously for development.',
#   requires => { 'PPI::Document' => 0,
#                 'Perl::MinimumVersion' => 0,
#                 'Encode' => 0,
#                 'Perl6::Slurp' => 0,
#                 'Regexp::Common' => 0,
#                 'Devel::Mallinfo' => 0,
#                 'IO::Uncompress::AnyInflate' => 0,
#                 'lib::abs' => 0,
#                 'IO::String' => 0,
#                 'Digest::MD5' => 0,
#                 'I18N::Langinfo' => 0,
#                 'Locale::TextDomain' => 0,
#                 'File::Locate' => 0,
#
#                 'File::Locate::Iterator' => 0, # mine
#                 # parts of File::Locate::Iterator
#                 'Iterator::Simple' => 0,
#                 'Iterator::Simple::Locate' => 0,
#               },
# },