go-db-perl
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# Let the code begin...
require 5.003;
use ExtUtils::MakeMaker;
if (system("which wget > /dev/null")) {
print <<EOM;
** WARNING **
Your system does not have the wget executable - this is required if you
intend to build your own go-database. If you do intend to query a
pre-built database, you may continue safely.
wget comes as standard on most linux distributions. You should be able
to find a copy for more unixes. If you use OS X, wget is available via
fink
EOM
}
my $p = "XML::LibXSLT";
if (!eval "require $p") {
print <<EOM;
WARNING: ** You do not have XML::LibXSLT installed **
This is required if you intend to build your own go-database. If you
do intend to query a pre-built database, you may continue
safely. However, the test suite will not work.
EOM
;
#
}
if (!$ENV{GO_ROOT}) {
print <<EOM;
** WARNING **
You do not have the environment variable GO_ROOT set. This is required
for building the database, so that the system known where the XSL
files live.
You should set this to wherever your go-dev distribution lives; eg
setenv GO_ROOT $HOME/go-dev/
If you are having problems installing XML::LibXSLT, please consult
http://www.godatabase.org/dev/xml/doc/xml-doc.html
EOM
}
my $p = "DBIx::DBStag";
if (!eval "require $p") {
print <<MSG;
** WARNING **
You do not have DBIx::DBStag
This is required for some of the tests in the test suite, and for
building the GO Database. If you intend to use a pre-built database,
you can ignore these errors.
MSG
}
$do_autoload_finesse = 0;
$NAME = 'GO';
$DISTNAME = "GO";
$VERSION = "0.01";
if( $do_autoload_finesse == 1 ) {
fatal("Autoload finessing does not work at the moment!");
}
@BACKUP_FILES = ();
# (plagiarised from the bioperl Makefile.PL)
sub check_package {
my ($name,$str) = @_;
my($ver,$desc,$expl,@modules);
($ver,$desc,$expl,$module) = split( /\// , $str);
if( !eval "require $name") {
print "** WARNING **\n External Module $name, $desc,\n is not installed on this computer.\n\n\n";
return 1;
}
return 0;
}
if( $do_autoload_finesse ) {
print "GO module installation\nPreparing modules for AUTOLOADing...";
`perl -p -i.bak -e 's/#__END__/__END__/' Seq.pm`;
print "done.\n\n";
}
$error = 0;
foreach $name ( keys %packages ) {
( run in 0.521 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )