From kawas at dev.open-bio.org Tue Sep 4 13:40:35 2007 From: kawas at dev.open-bio.org (Eddie Kawas) Date: Tue, 4 Sep 2007 13:40:35 -0400 Subject: [MOBY-guts] biomoby commit Message-ID: <200709041740.l84HeZ7M013610@dev.open-bio.org> kawas Tue Sep 4 13:40:34 EDT 2007 Update of /home/repository/moby/moby-live/Perl In directory dev.open-bio.org:/tmp/cvs-serv13575 Modified Files: Makefile.PL Log Message: removing the requirement that the module LS must be installed for Makefile to be created moby-live/Perl Makefile.PL,1.28,1.29 =================================================================== RCS file: /home/repository/moby/moby-live/Perl/Makefile.PL,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- /home/repository/moby/moby-live/Perl/Makefile.PL 2007/08/28 23:54:46 1.28 +++ /home/repository/moby/moby-live/Perl/Makefile.PL 2007/09/04 17:40:34 1.29 @@ -27,7 +27,6 @@ END_OF_TEXT -exit(0); } sub MY::postamble { From kawas at dev.open-bio.org Tue Sep 4 18:28:14 2007 From: kawas at dev.open-bio.org (Eddie Kawas) Date: Tue, 4 Sep 2007 18:28:14 -0400 Subject: [MOBY-guts] biomoby commit Message-ID: <200709042228.l84MSETs013914@dev.open-bio.org> kawas Tue Sep 4 18:28:14 EDT 2007 Update of /home/repository/moby/moby-live/Perl In directory dev.open-bio.org:/tmp/cvs-serv13879 Modified Files: Makefile.PL Log Message: moby-live/Perl Makefile.PL,1.29,1.30 =================================================================== RCS file: /home/repository/moby/moby-live/Perl/Makefile.PL,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- /home/repository/moby/moby-live/Perl/Makefile.PL 2007/09/04 17:40:34 1.29 +++ /home/repository/moby/moby-live/Perl/Makefile.PL 2007/09/04 22:28:14 1.30 @@ -1,427 +1,427 @@ -use ExtUtils::MakeMaker; -use FindBin '$Bin'; -use strict; -my $VERSION = '0.87'; - -# need a way of relaying the information that LS cannot be found on CPAN -eval "require LS"; -if ($@) { - print STDOUT <<'END_OF_TEXT'; - -############## IMPORTANT ############## -Module 'LS' is not installed. This module is used -**only** if you are wanting to host a LSID Authority! - -Unfortunately, this module is not available on CPAN -and must be manually installed. Some of the -dependencies are beta and as such, may not be stable. - -You can try searching Google using the keywords: - - 'perl LS lsid' - -or, try downloading it from the following link: - - 'http://sourceforge.net/project/showfiles.php?group_id=130827' - - -END_OF_TEXT - -} - -sub MY::postamble { - # Now build documentation. - use Pod::Find qw(pod_find simplify_name); - use Cwd; - my $cur_dir = getcwd(); - # Find the files that contain POD, starting from the top-level build directory, and do it silently. - my %pods = pod_find({ -verbose => 0}, - File::Spec->catfile($cur_dir, "MOBY") ); - my @PM = sort keys %pods; - my @MOD_NAMES = map {$pods{$_}} @PM; - # Make home for all docs - # If we build the home from here, it will only be built when the user runs "perl Makefile.PL" - # It's more robust to put it directly into the Makefile, - # so that it can be rebuilt with a simple "make" if needed. - # But that would require figuring out how to walk a tree from the shell, - # and I don't have time for that. Maybe some other day. - my $HTML_ROOT = File::Spec->catfile($cur_dir, qw(docs html)); - mkdir File::Spec->catfile($cur_dir, "docs") - unless -e File::Spec->catfile($cur_dir, "docs"); - mkdir $HTML_ROOT unless -e $HTML_ROOT; - # Create a new directory tree for the documentation, that mirrors the source tree. - use File::Find; - my @make_dirs_list; - sub wanted { # Define nested subroutine, to inherit variable scope - my $src_dir = $File::Find::dir; - (my $doc_dir = $src_dir) =~ s/$cur_dir/$HTML_ROOT/; -# print STDERR "EXamining $doc_dir\n"; - if ( !($doc_dir =~ /CVS$/) ) { - push @make_dirs_list, $doc_dir # Always put into list, whether exists or not, since it goes into a rule - unless (grep /^$doc_dir$/, @make_dirs_list); # unless seen already - if (!(-e $doc_dir)) { - my $made_dir = mkdir $doc_dir; - if (!$made_dir) { - print STDERR "Couldn't create directory '$doc_dir' because '$!'"; - } - } - } - } - find(\&wanted, File::Spec->catfile($cur_dir, "MOBY")); - # Finally, start writing the rules. - # Let's make a big rule to build all the docs at once, call it 'html' - # Then other little rules to keep each PM-file's docs up to date, without having to build everything. - my @HTML = map { # Edit beginning and end of PM files, to make HTML filenames - my $x = $_; # Don't want to change the original... - $x =~ s/\.p[lm]$/\.html/; - $x =~ s/^$cur_dir/$HTML_ROOT/; - $x} @PM; - my $postamble = "# Rules to keep developer docs up-to-date.\n"; - $postamble .= "POD_TO_HTML = " . join(" \\\n", @HTML) - . "\n\nhtml: \$(POD_TO_HTML)\n"; -# $postamble .= "\n\nHTML_DIRS = " . join(" \\\n", @make_dirs_list) . "\n"; -# . "\n\nhtml:\n"; # \$(HTML_DIRS) -# $postamble .= "\$(HTML_DIRS):\n\tfor file in " -# . join(" \\\n", @make_dirs_list) . -# "\\\n; do \\\n if [! -d \$\$file ] ; then mkdir \$\$file ; fi\\\n done\n\n"; - - # Now, finally, we build rules for the makefile. - # The TAB ('\t') characters are essential, otherwise 'make' will silently ignore the rules. - # Don't be tempted to remove them. - for (my $i = 0; $i < @PM; $i++) { - $postamble .= <index.html" or die "Couldn't open index.html ($!)"; - print INDEX < - - - - MOBY-S Perl Module Documentation - - -
-

MOBY-S Perl Modules Documentation

-
-For an overview of how to do various things in Perl, see the -Perl Tutorial

-The documents below (including this one) are generated by pod2html from the various perl -modules and give specific interface information for each of the Perl modules described in the tutorial. - -