Login
changes to address RT ticket 29540:
[gknop/Perl-Critic.git] / Makefile.PL
CommitLineData
02b7b45d
JRT
1#######################################################################
2# $URL$
3# $Date$
4# $Author$
5# $Revision$
345c7562 6# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab :
02b7b45d
JRT
7########################################################################
8
9f0edba9
ES
9BEGIN {
10 require 5.006001;
11}
12
59b05e08
JRT
13use strict;
14use warnings;
34cc6052
ES
15
16use lib 'inc';
17use lib 'lib';
18
59b05e08
JRT
19use ExtUtils::MakeMaker;
20
70f3f307
ES
21use Perl::Critic::BuildUtilities qw<
22 test_wrappers_to_generate
496afbe0 23 get_PL_files
70f3f307 24 dump_unlisted_or_optional_module_versions
7963ad6d 25 emit_tar_warning_if_necessary
70f3f307 26>;
34cc6052 27
d1a97a75 28my $warning = <<'END_WARNING';
d06bd3e7 29
a4141f24
JRT
30###################################################
31# NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! #
32#-------------------------------------------------#
33# In this version of Perl::Critic, some of #
34# the Policy modules have been renamed to better #
35# better reflect the intent of the Policy. If #
36# you have an older version of Perl::Critic #
37# already installed, it will cause many of the #
38# tests to fail and the new version will not work #
39# properly. #
40# #
41# I strongly advise you to remove the current #
42# version of Perl::Critic before proceeding with #
43# this installation. In most cases, this can be #
44# done by deleting everything below the #
45# Perl/Critic/Policy directory in your site_perl #
46# location. #
47# #
48# Also, if you have created a .perlcriticrc file, #
49# you will need to update it to match the new #
50# Policy module names. #
51# #
52# Sorry for the inconvenience. #
53# #
54# -Jeff <thaljef@cpan.org> #
55###################################################
d06bd3e7 56
a4141f24
JRT
57END_WARNING
58
d1a97a75
JRT
59
60eval {
61 require Perl::Critic;
62 warn $warning if $Perl::Critic::VERSION < 0.14;
63};
64
65
7963ad6d
ES
66emit_tar_warning_if_necessary();
67
68
f372073c
AL
69WriteMakefile(
70 NAME => 'Perl::Critic',
71 AUTHOR => 'Jeffrey Thalhammer <thaljef@cpan.org>',
72 ABSTRACT_FROM => 'lib/Perl/Critic.pm',
bb9f1668 73 VERSION_FROM => 'lib/Perl/Critic.pm',
f372073c 74 EXE_FILES => ['bin/perlcritic'],
496afbe0 75 PL_FILES => get_PL_files(),
f372073c 76 PREREQ_PM => {
e2d4c0f0 77 'B::Keywords' => 1.05,
f372073c 78 'Config::Tiny' => 2,
3fff51e5 79 'Exception::Class' => 1.23,
f372073c
AL
80 'File::Spec' => 0,
81 'File::Spec::Unix' => 0,
82 'IO::String' => 0,
83 'List::MoreUtils' => 0,
84 'List::Util' => 0,
a7340650 85 'Module::Pluggable' => 3.1,
e087d6fb 86 'PPI' => 1.201,
f372073c
AL
87 'Pod::PlainText' => 0,
88 'Pod::Usage' => 0,
c680a9c9 89 'Readonly' => 1.03,
f372073c 90 'Scalar::Util' => 0,
f372073c
AL
91 'String::Format' => 1.13,
92 'Test::More' => 0,
93 },
6d34b243
ES
94 realclean => {
95 FILES =>
96 join
97 q< >,
98 test_wrappers_to_generate(),
99 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run'
100 },
59b05e08 101);
e2d1c3dd
AL
102
103sub MY::postamble {
c1c3dd88 104 return <<"MAKE_FRAG";
e2d1c3dd
AL
105.PHONY: tags
106
107tags:
c1c3dd88
ES
108\tctags -f tags \\
109\t\t--recurse \\
110\t\t--totals \\
111\t\t\\
112\t\t--exclude=blib/ \\
113\t\t--exclude=t/lib \\
114\t\t--exclude=.svn \\
115\t\t--exclude='*~' \\
116\t\t\\
117\t\t--languages=Perl \\
fdac20fb 118\t\t--langmap=Perl:+.t
e2d1c3dd
AL
119MAKE_FRAG
120}
121
70f3f307
ES
122dump_unlisted_or_optional_module_versions();
123
c28a9e24
JRT
124##############################################################################
125# Local Variables:
126# mode: cperl
127# cperl-indent-level: 4
128# fill-column: 78
129# indent-tabs-mode: nil
130# c-indentation-style: bsd
131# End:
132# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab :