-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
55 lines (51 loc) · 1.57 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
use strict;
use warnings;
use Module::Build;
my %build = (
module_name => 'DBIx::DBO',
license => 'perl',
dist_author => 'Vernon Lyon <[email protected]>',
dist_version_from => 'lib/DBIx/DBO.pm',
dynamic_config => 1,
configure_requires => {
'Module::Build' => '0.30',
},
build_requires => {
'Module::Build' => '0.30',
'Test::More' => 0.88,
'File::Temp' => 0,
},
requires => {
'perl' => 5.014,
'DBI' => '1.55',
},
recommends => {
'DBD::mysql' => 4.004,
'DBD::Pg' => 2,
'DBD::SQLite' => 1.31,
'DBD::Oracle' => 1.13,
'Storable' => 2.38,
},
meta_merge => {
resources => {
bugtracker => 'https://github.com/vlyon/DBIx-DBO/issues',
repository => 'git://github.com/vlyon/DBIx-DBO.git',
},
},
);
unless (exists &Scalar::Util::weaken) {
# The pure-perl Scalar::Util doesn't contain weaken(), Task::Weaken will try to fix it or give an error
$build{requires}{'Task::Weaken'} = 0;
}
Module::Build->subclass(code => q(
sub ACTION_testcover {
$ENV{DEVEL_COVER_OPTIONS} = '-ignore,^Test/,-coverage,all,pod-also_private-STORABLE_'
unless exists $ENV{DEVEL_COVER_OPTIONS};
print "DEVEL_COVER_OPTIONS = $ENV{DEVEL_COVER_OPTIONS}\n";
shift->SUPER::ACTION_testcover;
}
sub ACTION_test {
local $_[0]->{properties}{verbose} = 1 if $ENV{AUTOMATED_TESTING};
$_[0]->SUPER::ACTION_test;
}
))->new(%build)->create_build_script();