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