line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
1
|
|
|
1
|
|
11
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
65
|
|
3
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
65
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use Module::Build; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
174
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
my $class = do { |
8
|
1
|
|
|
1
|
|
266
|
if( eval "use Test::Manifest 2.00; 1" ) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Test::Manifest->get_module_build_subclass; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
else { |
12
|
|
|
|
|
|
|
'Module::Build'; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
}; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $build = $class->new( |
17
|
|
|
|
|
|
|
module_name => 'Test::Prereq', |
18
|
|
|
|
|
|
|
dist_abstract => 'Ensure a build file lists all pre-requisites', |
19
|
|
|
|
|
|
|
dist_version_from => 'lib/Prereq.pm', |
20
|
|
|
|
|
|
|
license => 'perl', |
21
|
|
|
|
|
|
|
dist_author => 'brian d foy ', |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
recommends => { |
24
|
|
|
|
|
|
|
'Test::Manifest' => '2.00', |
25
|
|
|
|
|
|
|
}, |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
build_requires => { |
28
|
|
|
|
|
|
|
'perl' => '5.010', |
29
|
|
|
|
|
|
|
'Test::Builder' => '0', |
30
|
|
|
|
|
|
|
'Test::Builder::Tester' => '0', |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
test_requires => { |
34
|
|
|
|
|
|
|
'Test::More' => '0', |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
requires => { |
38
|
|
|
|
|
|
|
'Module::Build' => '0', |
39
|
|
|
|
|
|
|
'Module::CoreList' => '0', |
40
|
|
|
|
|
|
|
'Module::Info' => '0', |
41
|
|
|
|
|
|
|
}, |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
pm_files => { |
44
|
|
|
|
|
|
|
'lib/Prereq.pm' => 'lib/Test/Prereq.pm', |
45
|
|
|
|
|
|
|
'lib/Build.pm' => 'lib/Test/Prereq/Build.pm', |
46
|
|
|
|
|
|
|
}, |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
add_to_cleanup => [ qw|Test-*| ], |
49
|
|
|
|
|
|
|
); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
$build->create_build_script; |