####################################################################### # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/Makefile.PL $ # $Date: 2007-10-22 04:03:18 -0500 (Mon, 22 Oct 2007) $ # $Author: clonezone $ # $Revision: 2001 $ # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab : ######################################################################## require 5.006001; use strict; use warnings; use lib 'inc'; use lib 'lib'; use ExtUtils::MakeMaker; use Perl::Critic::BuildUtilities qw< test_wrappers_to_generate get_PL_files dump_unlisted_or_optional_module_versions emit_tar_warning_if_necessary >; my $warning = <<'END_WARNING'; ################################################### # NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! # #-------------------------------------------------# # In this version of Perl::Critic, some of # # the Policy modules have been renamed to better # # better reflect the intent of the Policy. If # # you have an older version of Perl::Critic # # already installed, it will cause many of the # # tests to fail and the new version will not work # # properly. # # # # I strongly advise you to remove the current # # version of Perl::Critic before proceeding with # # this installation. In most cases, this can be # # done by deleting everything below the # # Perl/Critic/Policy directory in your site_perl # # location. # # # # Also, if you have created a .perlcriticrc file, # # you will need to update it to match the new # # Policy module names. # # # # Sorry for the inconvenience. # # # # -Jeff # ################################################### END_WARNING eval { require Perl::Critic; warn $warning if $Perl::Critic::VERSION < 0.14; }; emit_tar_warning_if_necessary(); WriteMakefile( NAME => 'Perl::Critic', AUTHOR => 'Jeffrey Thalhammer ', ABSTRACT_FROM => 'lib/Perl/Critic.pm', VERSION_FROM => 'lib/Perl/Critic.pm', EXE_FILES => ['bin/perlcritic'], PL_FILES => get_PL_files(), PREREQ_PM => { 'B::Keywords' => 1.05, 'Config::Tiny' => 2, 'Exception::Class' => 1.23, 'File::Spec' => 0, 'File::Spec::Unix' => 0, 'IO::String' => 0, 'List::MoreUtils' => 0, 'List::Util' => 0, 'Module::Pluggable' => 3.1, 'PPI' => 1.201, 'Pod::PlainText' => 0, 'Pod::Usage' => 0, 'Readonly' => 1.03, 'Scalar::Util' => 0, 'String::Format' => 1.13, 'Test::More' => 0, }, realclean => { FILES => join q< >, test_wrappers_to_generate(), 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run' }, ); sub MY::postamble { return <<"MAKE_FRAG"; .PHONY: tags tags: \tctags -f tags \\ \t\t--recurse \\ \t\t--totals \\ \t\t\\ \t\t--exclude=blib/ \\ \t\t--exclude=t/lib \\ \t\t--exclude=.svn \\ \t\t--exclude='*~' \\ \t\t\\ \t\t--languages=Perl \\ \t\t--langmap=Perl:+.t MAKE_FRAG } dump_unlisted_or_optional_module_versions(); ############################################################################## # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 78 # indent-tabs-mode: nil # c-indentation-style: bsd # End: # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab :