Modified source files and compiled any and armel versions of packages
[pkg-perl] / deb-src / libperl-critic-perl / libperl-critic-perl-1.088 / Makefile.PL
1 #######################################################################
2 #      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/Makefile.PL $
3 #     $Date: 2008-06-17 14:27:21 -0500 (Tue, 17 Jun 2008) $
4 #   $Author: clonezone $
5 # $Revision: 2450 $
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                 'lib/Perl/Critic/PolicySummary.pod',
89                 test_wrappers_to_generate(),
90                 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run',
91                 't/Variables/RequireLocalizedPunctuationVars.run',
92     },
93 );
94
95 sub MY::postamble {
96     return <<"MAKE_FRAG";
97 .PHONY: tags
98
99 tags:
100 \tctags -f tags \\
101 \t\t--recurse \\
102 \t\t--totals \\
103 \t\t\\
104 \t\t--exclude=blib/ \\
105 \t\t--exclude=t/lib \\
106 \t\t--exclude=.svn \\
107 \t\t--exclude='*~' \\
108 \t\t\\
109 \t\t--languages=Perl \\
110 \t\t--langmap=Perl:+.t
111 MAKE_FRAG
112 }
113
114 dump_unlisted_or_optional_module_versions();
115
116 ##############################################################################
117 # Local Variables:
118 #   mode: cperl
119 #   cperl-indent-level: 4
120 #   fill-column: 78
121 #   indent-tabs-mode: nil
122 #   c-indentation-style: bsd
123 # End:
124 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :