line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::New::File::ModuleBuild;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
596
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
56
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
53
|
|
5
|
2
|
|
|
2
|
|
7
|
use Module::New::File;
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
10
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
file 'Build.PL' => content { return <<'EOT';
|
8
|
|
|
|
|
|
|
use strict;
|
9
|
|
|
|
|
|
|
use warnings;
|
10
|
|
|
|
|
|
|
use Module::Build;
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $builder = Module::Build->new(
|
13
|
|
|
|
|
|
|
module_name => '<%= $c->module %>',
|
14
|
|
|
|
|
|
|
license => '<%= $c->config('license') || 'perl' %>',
|
15
|
|
|
|
|
|
|
dist_author => '<%= $c->config('author') %> <<%= $c->config('email') %>>',
|
16
|
|
|
|
|
|
|
dist_version_from => '<%= $c->mainfile %>',
|
17
|
|
|
|
|
|
|
requires => {
|
18
|
|
|
|
|
|
|
},
|
19
|
|
|
|
|
|
|
build_requires => {
|
20
|
|
|
|
|
|
|
'Test::More' => '0.88', # for done_testing
|
21
|
|
|
|
|
|
|
'Test::UseAllModules' => '0.10',
|
22
|
|
|
|
|
|
|
},
|
23
|
|
|
|
|
|
|
resources => {
|
24
|
|
|
|
|
|
|
repository => '<%= $c->repository %>',
|
25
|
|
|
|
|
|
|
},
|
26
|
|
|
|
|
|
|
);
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
$builder->create_build_script;
|
29
|
|
|
|
|
|
|
EOT
|
30
|
|
|
|
|
|
|
};
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1;
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__
|