Login
Changed the !!, which is a little non-obvious
[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 => {},
dc93df4f
JRT
57 PREREQ_PM => {'Config::Tiny' => 2,
58 'File::Spec' => 0,
59 'File::Spec::Unix' => 0,
60 'IO::String' => 0,
61 'List::MoreUtils' => 0,
62 'List::Util' => 0,
dff08b70 63 'Module::Pluggable' => 0,
7eb74da0 64 'PPI' => 1.118,
dc93df4f
JRT
65 'Pod::PlainText' => 0,
66 'Pod::Usage' => 0,
67 'Scalar::Util' => 0,
68 'Set::Scalar' => 1.20,
69 'String::Format' => 1.13,
70 'Test::More' => 0,
59b05e08
JRT
71 },
72
73);
e2d1c3dd
AL
74
75sub MY::postamble {
76 return <<'MAKE_FRAG';
77.PHONY: tags
78
79tags:
49fe0be2
AL
80 ctags -f tags \
81 --recurse \
82 --totals \
83 \
84 --exclude=blib/ \
85 --exclude=t/lib \
86 --exclude=.svn \
87 --exclude='*~' \
88 \
89 --languages=Perl \
90 --langmap=Perl:+.t \
e2d1c3dd
AL
91MAKE_FRAG
92}
93