line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::New::File::ModuleBuild; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
648
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
86
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
5
|
2
|
|
|
2
|
|
13
|
use Module::New::File; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
18
|
|
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__ |