added bio::ext support
[bioperl-live.git] / Makefile.PL
blob090ae3578b4b618d81d5399c6f38986f78fae5d0
1 ## --Makefile.PL for Bioperl core module distribution--##
2 ## ----------------------------------------------------##
4 # $Id$
7 # Basically this is a standard makefile except 
8 # that we are experimenting with an 'optional autoload'
9 # on the Seq.pm file. 
11 # At the moment, (oct 1998) this don't work, so it
12 # is switched off, hence $do_autoload_finesse =0; [EB]
14 # If you want help with this Makefile get in touch with
15 # the bioperl core by sending a message to bioperl-bugs@bio.perl.org
16 # for real bugs or vsns-bcd-perl-guts@lists.uni-bielefeld.de
17 # to send a mail to all the bioperl core developpers.
21 # Talk to Ewan (<birney@sanger.ac.uk>) for more info.
24 # Let the code begin...
26 require 5.004;
27 use ExtUtils::MakeMaker;
29 $do_autoload_finesse = 0;
30 $NAME     = 'Bio';
31 $DISTNAME = "bioperl";
32 $VERSION  = "0.05.1";
34 if( $do_autoload_finesse == 1 ) {
35     fatal("Autoload finessing does not work at the moment!");
38 # don't catch signals - it is very boring!
40 #BEGIN {
41 ##Catch signals and invoke a cleanup function
42 #$SIG{__WARN__} = $SIG{INT} = $SIG{QUIT} =\&cleanup;
45 @BACKUP_FILES = qw(./Seq.pm.bak);
48 # This does an inplace edit on Seq.pm
51 if( $do_autoload_finesse ) {
53     print "Bioperl module installation\nPreparing modules for AUTOLOADing...";
54     `perl -p -i.bak -e 's/#__END__/__END__/' Seq.pm`;
55     print "done.\n\n";
58 # Check for LWP and warn that Webblast requires it.
60 unless( eval "require HTTP::Request::Common" and
61         eval "require LWP::UserAgent") {
63 print STDERR <<QQ_MISSING_LWP_QQ;
65 ======================================================
66 WARNING: LWP IS NOT INSTALLED.
68    Webblast.pm now requires the LWP (libwww-perl) modules.
69    To launch remote BLASTs, you will need to install
70    these most-excellent modules which can be readily
71    obtained from your local CPAN site:
72    http://www.perl.com/CPAN/
74    But don't worry, the rest of bioperl will work fine  
75 ======================================================
77 QQ_MISSING_LWP_QQ
80 # Check for Ace and warn that Bio::DB::Ace
82 unless( eval "require Ace" ) {
84 print STDERR <<QQ_MISSING_ACE_QQ;
86 ======================================================
87 WARNING: Ace IS NOT INSTALLED.
89   Ace.pm (AcePerl) is not installed. Bio::DB::Ace 
90   requires it for access to acedb databases. You can
91   download this sweet module from
92   http://stein.cshl.org/AcePerl
93   
94   But don't worry, the rest of bioperl will work fine  
95 ======================================================
97 QQ_MISSING_ACE_QQ
100 WriteMakefile(
101     NAME        => $NAME,
102     DISTNAME    => $DISTNAME,
103     VERSION     => $VERSION,
104     'dist'      => {  COMPRESS     => 'gzip -9f',
105                       SUFFIX       => '.gz', 
106                       DIST_DEFAULT => 'all tardist',
107                    },
109    'realclean'  => {  FILES        => join(' ',@BACKUP_FILES) }
113 sub cleanup {
114 my $sig = @_;
115 print "\n** [$0] Caught a SIG$sig -- cleaning up and shutting down.\n";
117 ## Try to keep module pristine & recover from any inplace edits
118 if(-e "./Seq.pm.bak")    { `cp ./Seq.pm.bak ./Seq.pm.dist`; `mv ./Seq.pm.bak ./Seq.pm`;  }
119 exit(0);