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
9 my $v = '1.006900'; # pre-1.7, requires bioperl-live main trunk
10 eval "use Bio::Root::Build $v";
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(
19 dist_name
=> 'BioPerl-run',
21 dist_author
=> 'BioPerl Team <bioperl-l@bioperl.org>',
22 dist_abstract
=> 'BioPerl-run - wrapper toolkit',
26 #'Bio::Root::Version' => '1.007000' # checked above
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'
36 network
=> { } # say 'perl Build.PL --network' to manually request network tests
40 description
=> "Enable tests that need an internet connection",
41 requires
=> { 'LWP::UserAgent' => 0 },
42 test
=> \
&Bio
::Root
::Build
::test_internet
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};
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");
63 $build->notes(network
=> 0);
64 $build->log_info(" - will not run network tests since I seem to be missing essential network functionality\n");
68 $build->prompt_for_network($accept) if $build->feature('Network');
72 # Create the build script and exit
73 $build->create_build_script;