From 3bdc7441cd8dd66e3e1478e0c199f5f7132c3a93 Mon Sep 17 00:00:00 2001 From: cjfields Date: Sat, 31 Jan 2009 21:28:20 +0000 Subject: [PATCH] use eval to check for Bio::Root::Build svn path=/bioperl-network/trunk/; revision=15483 --- Build.PL | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Build.PL b/Build.PL index 145a40e..8fce98c 100755 --- a/Build.PL +++ b/Build.PL @@ -6,18 +6,23 @@ # Uses a custom subclass of Module::Build called Bio::Root::Build use strict; -use Bio::Root::Build; +my $v = '1.007000'; # 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-network\n"; +} # Set up the Bio::Root::Build object my $build = Bio::Root::Build->new( module_name => 'Bio', dist_name => 'BioPerl-network', - dist_version => '1.006000', + dist_version => $v, dist_author => 'BioPerl Team ', dist_abstract => 'BioPerl-network - package for biological networks', license => 'perl', requires => {'perl' => '5.6.1', - 'Bio::Root::Version' => '1.7.0', + #'Bio::Root::Version' => '1.006000', # checked above 'Graph' => 0.86 }, recommends => {'XML::Twig' => '3.22/parsing PSI XML/Bio::Graph::IO::psi'}, dynamic_config => 1, -- 2.11.4.GIT