Login
Always put parens on method calls.
[gknop/Perl-Critic.git] / Makefile.PL
1 #######################################################################
2 #      $URL$
3 #     $Date$
4 #   $Author$
5 # $Revision$
6 ########################################################################
7
8 use 5.006001;
9
10 use strict;
11 use warnings;
12
13 use lib 'inc';
14 use lib 'lib';
15
16 use ExtUtils::MakeMaker;
17
18 use Perl::Critic::BuildUtilities qw<
19     test_wrappers_to_generate
20     get_PL_files
21     dump_unlisted_or_optional_module_versions
22     emit_tar_warning_if_necessary
23 >;
24
25
26 emit_tar_warning_if_necessary();
27
28
29 # An attempt was made by Elliot to get the "resources" META.yml entry going
30 # here, but he failed.  The version in Build.PL works.  See the Makefile.PL
31 # in the ack distribution for an example.
32
33 WriteMakefile(
34     NAME           => 'Perl::Critic',
35     AUTHOR         => 'Jeffrey Thalhammer <thaljef@cpan.org>',
36     ABSTRACT_FROM  => 'lib/Perl/Critic.pm',
37     VERSION_FROM   => 'lib/Perl/Critic.pm',
38     EXE_FILES      => ['bin/perlcritic'],
39     PL_FILES       => get_PL_files(),
40     PREREQ_PM      => {
41         'B::Keywords'               => 1.05,
42         'Carp'                      => 0,
43         'Config::Tiny'              => 2,
44         'English'                   => 0,
45         'Exception::Class'          => 1.23,
46         'Exporter'                  => 0,
47         'File::Basename'            => 0,
48         'File::Find'                => 0,
49         'File::Path'                => 0,
50         'File::Spec'                => 0,
51         'File::Spec::Unix'          => 0,
52         'File::Temp'                => 0,
53         'Getopt::Long'              => 0,
54         'IO::String'                => 0,
55         'List::MoreUtils'           => 0,
56         'List::Util'                => 0,
57         'Module::Pluggable'         => 3.1,
58         'PPI'                       => 1.203,
59         'PPI::Document'             => 1.203,
60         'PPI::Document::File'       => 1.203,
61         'PPI::Node'                 => 1.203,
62         'PPI::Token::Quote::Single' => 1.203,
63         'PPI::Token::Whitespace'    => 1.203,
64         'Pod::PlainText'            => 0,
65         'Pod::Select'               => 0,
66         'Pod::Usage'                => 0,
67         'Readonly'                  => 1.03,
68         'Scalar::Util'              => 0,
69         'String::Format'            => 1.13,
70         'base'                      => 0,
71         'charnames'                 => 0,
72         'overload'                  => 0,
73         'strict'                    => 0,
74         'version'                   => 0,
75         'warnings'                  => 0,
76         'overload'                  => 0,
77         'strict'                    => 0,
78         'version'                   => 0,
79         'warnings'                  => 0,
80
81         'lib'                       => 0,
82         'Test::More'                => 0,
83     },
84     realclean      => {
85         FILES =>
86             join
87                 q< >,
88                 values %{ get_PL_files() },
89                 test_wrappers_to_generate(),
90     },
91 );
92
93 sub MY::postamble {
94     return <<"MAKE_FRAG";
95 .PHONY: tags
96
97 tags:
98 \tctags -f tags \\
99 \t\t--recurse \\
100 \t\t--totals \\
101 \t\t\\
102 \t\t--exclude=blib/ \\
103 \t\t--exclude=t/lib \\
104 \t\t--exclude=.svn \\
105 \t\t--exclude='*~' \\
106 \t\t\\
107 \t\t--languages=Perl \\
108 \t\t--langmap=Perl:+.t
109 MAKE_FRAG
110 }
111
112 dump_unlisted_or_optional_module_versions();
113
114 ##############################################################################
115 # Local Variables:
116 #   mode: cperl
117 #   cperl-indent-level: 4
118 #   fill-column: 78
119 #   indent-tabs-mode: nil
120 #   c-indentation-style: bsd
121 # End:
122 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :