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