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