version to 1.6.9 (pre-1.7)
[bioperl-run.git] / Build.PL
blobcbf164c334eadb3566067cfd0316521552ebb1ac
1 #!/usr/bin/perl -w
3 # This is a Module::Build script for bioperl-run installation.
4 # See http://search.cpan.org/~kwilliams/Module-Build/lib/Module/Build.pm
6 # Uses a custom subclass of Module::Build called Bio::Root::Build
8 use strict;
9 my $v = '1.006900'; # pre-1.7, requires bioperl-live main trunk
10 eval "use Bio::Root::Build $v";
11 if ($@) {
12 # using die so wrappers can catch the error message
13 die "BioPerl minimal core version $v is required for BioPerl-run\n";
16 # Set up the Bio::Root::Build object
17 my $build = Bio::Root::Build->new(
18 module_name => 'Bio',
19 dist_name => 'BioPerl-run',
20 dist_version => $v,
21 dist_author => 'BioPerl Team <bioperl-l@bioperl.org>',
22 dist_abstract => 'BioPerl-run - wrapper toolkit',
23 license => 'perl',
24 requires => {
25 'perl' => '5.6.1',
26 #'Bio::Root::Version' => '1.007000' # checked above
28 recommends => {
29 'Algorithm::Diff' => '0/generating consensus protein family descriptions/Bio::Tools::Run::TribeMCL',
30 'IPC::Run' => '0/Glimmer and Genemark application wrappers'.
31 '/Bio::Tools::Run::Glimmer,Bio::Tools::Run::Genemark',
32 'IO::String' => '0/generating Bio::Tree::Tree from strings/Bio::Tools::Run::Phylo::Phylip::Consense',
33 'XML::Twig' => '0/processing XML data/Bio::Tools::Run::EMBOSSacd'
35 get_options => {
36 network => { } # say 'perl Build.PL --network' to manually request network tests
38 auto_features => {
39 Network => {
40 description => "Enable tests that need an internet connection",
41 requires => { 'LWP::UserAgent' => 0 },
42 test => \&Bio::Root::Build::test_internet
45 dynamic_config => 1,
46 create_makefile_pl => 'passthrough'
48 #pm_files => {} # modules in Bio are treated as if they were in lib and auto-installed
49 #script_files => [] # scripts in scripts directory are installed on-demand
52 my $accept = $build->args->{accept};
54 # Ask questions
55 $build->choose_scripts;
57 if ($build->args('network')) {
58 if ($build->feature('Network')) {
59 $build->notes(network => 1);
60 $build->log_info(" - will run internet-requiring tests\n");
62 else {
63 $build->notes(network => 0);
64 $build->log_info(" - will not run network tests since I seem to be missing essential network functionality\n");
67 else {
68 $build->prompt_for_network($accept) if $build->feature('Network');
72 # Create the build script and exit
73 $build->create_build_script;
75 exit;