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