-
Notifications
You must be signed in to change notification settings - Fork 35
/
Build.PL
78 lines (64 loc) · 2.06 KB
/
Build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/perl -w
use 5.008001;
use Module::Build;
my $class = Module::Build->subclass(
class => 'Module::Build::Custom',
code => <<'SUBCLASS');
sub ACTION_distmeta{
my ($self) = @_;
if (eval {require Pod::Readme; Pod::Readme->can('new') } ){
$self->delete_filetree('README');
my $prf = Pod::Readme->new(
target => 'readme',
base_dir => '.',
input_file => $self->_main_docfile,
output_file => 'README.pod',
);
$prf->run();
$self->_add_to_manifest('MANIFEST', 'README.pod');
}
$self->SUPER::ACTION_distmeta;
};
SUBCLASS
my $build = $class->new(
module_name => 'Method::Signatures',
license => 'perl',
recursive_test_files => 1,
configure_requires => {
'Module::Build' => '0.31',
},
build_requires => {
'Module::Build' => '0.26',
'Test::More' => '0.82',
'Test::Builder' => '0.82',
'Test::Warn' => '0.10',
'Test::Exception' => '0.29',
},
requires => {
'perl' => '5.8.1',
'Devel::Declare' => '0.006002',
'Devel::Declare::MethodInstaller::Simple' => '0.006002',
'Const::Fast' => '0.006',
PPI => '1.203',
'Any::Moose' => '0.11',
Mouse => '0.64',
'Sub::Name' => '0.03',
'Lexical::SealRequireHints' => '0.008', #0.008 is for perl 5.10.x, RT#93759
},
recommends => {
'Moose' => '0.96',
'Data::Alias' => '1.08',
},
dist_author => 'Michael G Schwern <[email protected]>',
meta_merge => {
resources => {
license => 'http://dev.perl.org/licenses/',
bugtracker =>
'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Method-Signatures',
repository => 'https://github.com/evalEmpire/method-signatures',
},
},
create_readme => 1,
create_license => 1,
);
$build->create_build_script;