This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
forked from bioperl/bioperl-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
executable file
·81 lines (72 loc) · 3.15 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
79
80
81
#!/usr/bin/perl -w
#$Id$
# This is a Module::Build script for bioperl-dev installation.
# See http://search.cpan.org/~kwilliams/Module-Build/lib/Module/Build.pm
# Uses a custom subclass of Module::Build called Bio::Root::Build
use strict;
my $v = '1.006900'; # pre-1.7, requires bioperl-live main trunk
eval "use Bio::Root::Build $v";
if ($@) {
# using die so wrappers can catch the error message
die "BioPerl minimal core version $v is required for BioPerl-dev\n";
}
# Set up the Bio::Root::Build object
my $build = Bio::Root::Build->new(
module_name => 'Bio',
dist_name => 'BioPerl-dev',
dist_version => $v,
dist_author => 'BioPerl Team <bioperl-l@bioperl.org>',
dist_abstract => 'BioPerl-dev - wrapper toolkit',
license => 'perl',
requires => {
# probably justified in bumping this up, but
# leaving it for now:
'perl' => '5.6.1',
#'Bio::Root::Version' => '1.007000' # checked above
},
recommends => {
# your ad here
#
# please add in your dependencies here,
# if you intend your modules to be user-tested,
# as:
#'[dependency]' => '[version reqd]/[informative phrase]/[requirer]'
# ex)
#'Array::Compare' => '0/Phylogenetic Networks/Bio::PhyloNetwork'
},
get_options => {
network => { } # say 'perl Build.PL --network' to manually request network tests
},
auto_features => {
Network => {
description => "Enable tests that need an internet connection",
requires => { 'LWP::UserAgent' => 0 },
test => \&Bio::Root::Build::test_internet
}
},
dynamic_config => 1,
create_makefile_pl => 'passthrough'
#pm_files => {} # modules in Bio are treated as if they were in lib and auto-installed
#script_files => [] # scripts in scripts directory are installed on-demand
);
my $accept = $build->args->{accept};
# Ask questions
$build->choose_scripts;
{
if ($build->args('network')) {
if ($build->feature('Network')) {
$build->notes(network => 1);
$build->log_info(" - will run internet-requiring tests\n");
}
else {
$build->notes(network => 0);
$build->log_info(" - will not run network tests since I seem to be missing essential network functionality\n");
}
}
else {
$build->prompt_for_network($accept) if $build->feature('Network');
}
}
# Create the build script and exit
$build->create_build_script;
exit;