Login
Documentation edits
[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
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
f372073c
AL
51WriteMakefile(
52 NAME => 'Perl::Critic',
53 AUTHOR => 'Jeffrey Thalhammer <thaljef@cpan.org>',
54 ABSTRACT_FROM => 'lib/Perl/Critic.pm',
55 VERSION_FROM => 'lib/Perl/Critic.pm',
56 EXE_FILES => ['bin/perlcritic'],
57 PL_FILES => {},
58 PREREQ_PM => {
59 'Config::Tiny' => 2,
60 'File::Spec' => 0,
61 'File::Spec::Unix' => 0,
62 'IO::String' => 0,
63 'List::MoreUtils' => 0,
64 'List::Util' => 0,
a7340650 65 'Module::Pluggable' => 3.1,
f372073c
AL
66 'PPI' => 1.118,
67 'Pod::PlainText' => 0,
68 'Pod::Usage' => 0,
69 'Scalar::Util' => 0,
70 'Set::Scalar' => 1.20,
71 'String::Format' => 1.13,
72 'Test::More' => 0,
73 },
59b05e08 74);
e2d1c3dd
AL
75
76sub MY::postamble {
77 return <<'MAKE_FRAG';
78.PHONY: tags
79
80tags:
49fe0be2
AL
81 ctags -f tags \
82 --recurse \
83 --totals \
84 \
85 --exclude=blib/ \
86 --exclude=t/lib \
87 --exclude=.svn \
88 --exclude='*~' \
89 \
90 --languages=Perl \
91 --langmap=Perl:+.t \
e2d1c3dd
AL
92MAKE_FRAG
93}
94