Login
Bugfix: ProhibitCaptureWithoutTest was confused by
[gknop/Perl-Critic.git] / Makefile.PL
CommitLineData
02b7b45d
JRT
1#######################################################################
2# $URL$
3# $Date$
4# $Author$
5# $Revision$
c0b487cd 6# ex: set ts=8 sts=4 sw=4 expandtab
02b7b45d
JRT
7########################################################################
8
59b05e08
JRT
9use strict;
10use warnings;
59b05e08
JRT
11use ExtUtils::MakeMaker;
12
d1a97a75 13my $warning = <<'END_WARNING';
d06bd3e7 14
a4141f24
JRT
15###################################################
16# NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! #
17#-------------------------------------------------#
18# In this version of Perl::Critic, some of #
19# the Policy modules have been renamed to better #
20# better reflect the intent of the Policy. If #
21# you have an older version of Perl::Critic #
22# already installed, it will cause many of the #
23# tests to fail and the new version will not work #
24# properly. #
25# #
26# I strongly advise you to remove the current #
27# version of Perl::Critic before proceeding with #
28# this installation. In most cases, this can be #
29# done by deleting everything below the #
30# Perl/Critic/Policy directory in your site_perl #
31# location. #
32# #
33# Also, if you have created a .perlcriticrc file, #
34# you will need to update it to match the new #
35# Policy module names. #
36# #
37# Sorry for the inconvenience. #
38# #
39# -Jeff <thaljef@cpan.org> #
40###################################################
d06bd3e7 41
a4141f24
JRT
42END_WARNING
43
d1a97a75
JRT
44
45eval {
46 require Perl::Critic;
47 warn $warning if $Perl::Critic::VERSION < 0.14;
48};
49
50
59b05e08
JRT
51WriteMakefile( NAME => 'Perl::Critic',
52 AUTHOR => 'Jeffrey Thalhammer <thaljef@cpan.org>',
53 ABSTRACT_FROM => 'lib/Perl/Critic.pm',
54 VERSION_FROM => 'lib/Perl/Critic.pm',
55 EXE_FILES => ['bin/perlcritic'],
56 PL_FILES => {},
95653ce1 57 PREREQ_PM => {'PPI' => 1.117,
59b05e08
JRT
58 'Config::Tiny' => 2,
59 'File::Spec' => 0,
60 'List::MoreUtils' => 0,
61 'List::Util' => 0,
62 'Pod::Usage' => 0,
63 'Pod::PlainText' => 0,
64 'Test::More' => 0,
65 'IO::String' => 0,
4e771b0b 66 'Scalar::Util' => 0,
59b05e08 67 'String::Format' => 1.13,
dff08b70 68 'Module::Pluggable' => 0,
59b05e08
JRT
69 },
70
71);
e2d1c3dd
AL
72
73sub MY::postamble {
74 return <<'MAKE_FRAG';
75.PHONY: tags
76
77tags:
49fe0be2
AL
78 ctags -f tags \
79 --recurse \
80 --totals \
81 \
82 --exclude=blib/ \
83 --exclude=t/lib \
84 --exclude=.svn \
85 --exclude='*~' \
86 \
87 --languages=Perl \
88 --langmap=Perl:+.t \
e2d1c3dd
AL
89MAKE_FRAG
90}
91