#!/usr/bin/perl -w # This is a Module::Build script for bioperl-run 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-run\n"; } # Set up the Bio::Root::Build object my $build = Bio::Root::Build->new( module_name => 'Bio', dist_name => 'BioPerl-run', dist_version => $v, dist_author => 'BioPerl Team ', dist_abstract => 'BioPerl-run - wrapper toolkit', license => 'perl', requires => { 'perl' => '5.6.1', #'Bio::Root::Version' => '1.007000' # checked above }, recommends => { 'Algorithm::Diff' => '0/generating consensus protein family descriptions/Bio::Tools::Run::TribeMCL', 'IPC::Run' => '0/Glimmer and Genemark application wrappers'. '/Bio::Tools::Run::Glimmer,Bio::Tools::Run::Genemark', 'IO::String' => '0/generating Bio::Tree::Tree from strings/Bio::Tools::Run::Phylo::Phylip::Consense', 'XML::Twig' => '0/processing XML data/Bio::Tools::Run::EMBOSSacd' }, 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;