line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::New::File::MakeMakerCPANfile;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
467
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
51
|
|
4
|
2
|
|
|
2
|
|
6
|
use warnings;
|
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
31
|
|
5
|
2
|
|
|
2
|
|
300
|
use Module::New::File;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
file 'Makefile.PL' => content { return <<'EOT';
|
8
|
|
|
|
|
|
|
use strict;
|
9
|
|
|
|
|
|
|
use warnings;
|
10
|
|
|
|
|
|
|
use ExtUtils::MakeMaker::CPANfile;
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
WriteMakefile(
|
13
|
|
|
|
|
|
|
NAME => '<%= $c->module %>',
|
14
|
|
|
|
|
|
|
AUTHOR => '<%= $c->config('author') %> <<%= $c->config('email') %>>',
|
15
|
|
|
|
|
|
|
VERSION_FROM => '<%= $c->mainfile %>',
|
16
|
|
|
|
|
|
|
ABSTRACT_FROM => '<%= $c->mainfile %>',
|
17
|
|
|
|
|
|
|
LICENSE => '<%= $c->config('license') || 'perl' %>',
|
18
|
|
|
|
|
|
|
META_MERGE => {
|
19
|
|
|
|
|
|
|
resources => {
|
20
|
|
|
|
|
|
|
repository => '<%= $c->repository %>',
|
21
|
|
|
|
|
|
|
},
|
22
|
|
|
|
|
|
|
},
|
23
|
|
|
|
|
|
|
);
|
24
|
|
|
|
|
|
|
EOT
|
25
|
|
|
|
|
|
|
};
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
file 'cpanfile' => content { return <<'EOT';
|
28
|
|
|
|
|
|
|
on 'test' => sub {
|
29
|
|
|
|
|
|
|
requires 'Test::More' => '0.88'; # for done_testing
|
30
|
|
|
|
|
|
|
requires 'Test::UseAllModules' => '0.10';
|
31
|
|
|
|
|
|
|
};
|
32
|
|
|
|
|
|
|
EOT
|
33
|
|
|
|
|
|
|
};
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1;
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__
|