Login
Added workaround for RT #27065. There might be an alternative
[gknop/Perl-Critic.git] / Makefile.PL
1 #######################################################################
2 #      $URL$
3 #     $Date$
4 #   $Author$
5 # $Revision$
6 #        ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab :
7 ########################################################################
8
9 use strict;
10 use warnings;
11 use ExtUtils::MakeMaker;
12
13 my $warning = <<'END_WARNING';
14
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 ###################################################
41
42 END_WARNING
43
44
45 eval {
46     require Perl::Critic;
47     warn $warning if $Perl::Critic::VERSION < 0.14;
48 };
49
50
51 WriteMakefile(
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         'B::Keywords'           => 1.05,
60         'Config::Tiny'          => 2,
61         'File::Spec'            => 0,
62         'File::Spec::Unix'      => 0,
63         'IO::String'            => 0,
64         'List::MoreUtils'       => 0,
65         'List::Util'            => 0,
66         'Module::Pluggable'     => 3.1,
67         'PPI'                   => 1.118,
68         'Pod::PlainText'        => 0,
69         'Pod::Usage'            => 0,
70         'Scalar::Util'          => 0,
71         'String::Format'        => 1.13,
72         'Test::More'            => 0,
73     },
74 );
75
76 sub MY::postamble {
77     return <<'MAKE_FRAG';
78 .PHONY: tags
79
80 tags:
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 \
92 MAKE_FRAG
93 }
94
95 ##############################################################################
96 # Local Variables:
97 #   mode: cperl
98 #   cperl-indent-level: 4
99 #   fill-column: 78
100 #   indent-tabs-mode: nil
101 #   c-indentation-style: bsd
102 # End:
103 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab :