1require 5.004; 2use strict; 3use ExtUtils::MakeMaker; 4 5WriteMakefile( 6 NAME => 'Locale::Maketext', 7 VERSION_FROM => 'lib/Locale/Maketext.pm', 8 ABSTRACT_FROM => 'lib/Locale/Maketext.pod', 9 PREREQ_PM => { 10 'I18N::LangTags' => 0.31, 11 'I18N::LangTags::Detect' => 0, 12 'Test::More' => 0, 13 'parent' => 0, # For testing t/30_eval_dollar_at.t 14 }, 15 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 16 ( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ( 'LICENSE' => 'perl', ) : () ), 17 ( $] < 5.008 && $] > 5.011 ) ? () : ( INSTALLDIRS => 'perl' ), 18 19 # If under a version with Maketext in core, overwrite that core file. 20 META_MERGE => { 21 resources => { 22 license => 'http://dev.perl.org/licenses/', 23 bugtracker => 'https://github.com/perl/perl5/issues', 24 repository => 'https://github.com/Perl/perl5/tree/blead/dist/Locale-Maketext', 25 MailingList => 'http://lists.perl.org/list/perl5-porters.html', 26 }, 27 }, 28); 29 30sub MY::postamble { 31 return <<'MAKE_FRAG'; 32.PHONY: tags critic 33 34tags: 35 ctags -f tags --recurse --totals \ 36 --exclude=blib \ 37 --exclude=.svn \ 38 --exclude='*~' \ 39 --languages=Perl --langmap=Perl:+.t \ 40 41critic: 42 perlcritic -1 -q -profile perlcriticrc -statistics lib/ t/ 43 44MAKE_FRAG 45} 46