Update of /cvsroot/fink/experimental/dmacks/finkinfo
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv26625
Added Files:
mapmaker.info mapmaker.patch
Log Message:
Cleanup of casual coding in progress...
--- NEW FILE: mapmaker.patch ---
diff -Nurd -x'*~' mapm3-source.orig/Makefile mapm3-source/Makefile
--- mapm3-source.orig/Makefile 1993-02-10 01:12:59.000000000 -0500
+++ mapm3-source/Makefile 2006-06-09 02:57:30.000000000 -0400
@@ -24,7 +24,7 @@
#### datasets (roughly 5000 loci vs 1000 loci). For even bigger datasets,
#### modify mapm/mapm.h.
-SYS= -D_SYS_SUNOS
+SYS= -D_BIG_DATASETS
#### Next define the system libraries to link with Mapmaker. On SunOS, Ultrix
#### and other vanilla-ish BSD systems, the correct setting is:
@@ -35,7 +35,7 @@
#### is probably best (for ex: on A/UX or HP/UX, respectively).
#### On A/UX -lmalloc is likely a good idea too.
-SYS_LIBS= -lm -ltermcap
+SYS_LIBS= -ltermcap
[...2525 lines suppressed...]
diff -Nurd -x'*~' mapm3-source.orig/sun/xmapmaker mapm3-source/sun/xmapmaker
--- mapm3-source.orig/sun/xmapmaker 1993-02-10 00:57:29.000000000 -0500
+++ mapm3-source/sun/xmapmaker 2006-06-09 00:18:40.000000000 -0400
@@ -10,5 +10,5 @@
else if (-e /usr/openwin/demo/xterm) then
exec /usr/openwin/demo/xterm $xoptions $fontsize -e $program $*
else
- exec xterm $options $fontsize -e $program
+ exec xterm $xoptions $fontsize -e $program
endif
diff -Nurd -x'*~' mapm3-source.orig/sun/xqtl mapm3-source/sun/xqtl
--- mapm3-source.orig/sun/xqtl 1993-02-10 00:57:29.000000000 -0500
+++ mapm3-source/sun/xqtl 2006-06-09 00:18:40.000000000 -0400
@@ -10,5 +10,5 @@
else if (-e /usr/openwin/demo/xterm) then
exec /usr/openwin/demo/xterm $xoptions $fontsize -e $program $*
else
- exec xterm $options $fontsize -e $program
+ exec xterm $xoptions $fontsize -e $program
endif
--- NEW FILE: mapmaker.info ---
Package: mapmaker
Version: 3.0
Revision: 14
Description: Interactive genetic linkage mapping package
DescDetail: <<
MAPMAKER/EXP is a linkage analysis package designed to help construct
primary linkage maps of markers segregating in experimental crosses.
MAPMAKER/EXP performs full multipoint linkage analysis (simultaneous
estimation of all recombination fractions from the primary data) for
dominant, recessive, and co- dominant (e.g. RFLP-like) markers.
MAPMAKER/EXP is an experimental-cross-only successor to the original
MAPMAKER program.
MAPMAKER/QTL is a companion program to MAPMAKER/EXP which allows one
to map genes controlling polygenic quantitative traits in F2
intercrosses and BC1 backcrosses relative to a genetic linkage map.
More information on MAPMAKER/QTL can be found in the technical report
(included with MAPMAKER/QTL).
<<
DescUsage: <<
'mapmaker -help' or 'qtl -help' to get started
Screen drawing is a bit off sometimes, so it might be best to save a
transcript of your work (use -out or -photo) or else disable fancy
screen things (use -simple).
There is a tutorial and several formats of program documentation in
share/doc/mapmaker
<<
DescPort: <<
Compiled using -D_BIG_DATASETS (allows ca. 5000 loci).
Here's my thoughts on lib/system.h:
-D_SYS_UNIX (so we don't get DOSish artifacts).
-DSIGHANDLE=void (from the signal() manpage).
-DUSE_DRAND48 (drand48() uses 48 bits vs 31 for random())
Some -D to get correct typedefs according to the relevant manpages):
void * calloc(size_t number, size_t size);
void qsort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
(not sure about QSORT_DATA_PTR_TO)
-DUSE_LIB (/usr/include has all the resulting INC_*-caused .h files).
Other lib/system.h things:
Use system maximum-pathlength def (in sys/param.h) for PATH_LENGTH.
We have strerror().
We don't (seem to?) have matherror(), but we'll leave HAVE_MATHERR
defined for now.
We have getenv() and getcwd() but not chdir(), but let's see what
happens if we say we go with the default of saying we have 'em all.
Leaving the "Terminal I/O" stuff as-is for now.
Removed malloc.h (malloc() is in stdlib.h).
Removed USE_DRAND48 prototyping (it's in stdlib.h).
lib/iolib.h: /usr/include/stdio.h provides a conflicting prototype for
a (seemingly?) different fgetln() (from libc). Will do a brute-force
renaming and hope for the best.
A lot of calls to make_filename*(), fprint() and fwrite() pass
constant strings as param 3 which get passed to depsace() which tried
to modify them, causing a bus error. Thanks to Alexander Strange, who
notes that -fwritable-strings fixes this deprecated behavior.
info.c's allocate_three_entries() is recursive, leading to a stack
overflow for large datasets (while running 'pd', "Illegal instruction"
(EXC_BAD_ACCESS/KERN_INVALID_ADDRESS in xalloc()). Thanks to Ben Hines
The xterm wrappers are in sun/ but Makefile forgets to look there so
we link them into the main directory. And we fix a silly typo in them.
for pointing out the -stack_size solution.
Readline is giving problems so we disable it for now.
There's something goofy with the termcap.
CompileScript contains some ugly hacks to convert *.help (used by
online help facility in the programs) into HTML with linked TOCs.
Lots of code cleanups in resopnse to -Wall.
<<
Homepage: http://www.broad.mit.edu/tools/software.html
License: Restrictive
Maintainer: Daniel Macks <[EMAIL PROTECTED]>
Recommends: x11, ghostscript
GCC: 3.3
Source:
http://www-genome.wi.mit.edu/ftp/distribution/software/mapmaker3/mapm3-source.tar.Z
Source-MD5: 8aa7a061d32a49c8704c1a5c4b31aa2d
NoSourceDirectory: true
Source2: http://www-genome.wi.mit.edu/genome_software/other/mapmaker.html
Source2-MD5: 90eaaf5e1d89030cfe9c5d3b7be5566e
Patch: %n.patch
PatchScript: perl -pi -e 's/fgetln/myfgetln/g' `grep -lr fgetln .`
CompileScript: <<
#!/bin/sh -ex
make
ln -s sun/* .
for prog in mapmaker qtl; do
rm -f ${prog}-body.html ${prog}-toc.html ${prog}-help.html
perl -n -e 'if (s/^@//) {if ($not_first) [EMAIL
PROTECTED]("<pre>\n",@lines,"</pre>\n") } else [EMAIL PROTECTED]("<ol>\n")};
print @lines; @lines=();chomp; $htype = 3 - s/^TOPIC //; $htype==2 &&
$not_first++ && print "</ol>\n"; if (/^end$/) {print "</ol></ol>\n"} else
{($link=$_)=~tr/ /_/;print "<h$htype><li><a
name=\"$link\">$_</a></li></h$htype>\n"; $htype==2 && print "<ol>\n"}} else
{push @lines, $_}' ${prog}.help > ${prog}-body.html
perl -n -e 's/<\/?h.>//g,print if ( s/<a name="/<a href="#/ || /<\/?ol>/)'
${prog}-body.html > ${prog}-toc.html
( echo "<html><head><title>${prog} helpfile</title></head><body><h1>$prog
helpfile</h1><pre>Translated from %p/share/%n/${prog}.help by Fink
%f.info<h2>table of contents</h2>" ; cat ${prog}-toc.html ; echo "<hr>" ; cat
${prog}-body.html ; echo "</body></html>" ) > ${prog}-help.html
done
<<
InstallScript: <<
install -d -m0755 %i/bin %i/share/%n %i/share/doc/%n/tutorial
%i/share/doc/%n/html
make DIR=%i/bin install
mv %i/bin/*.help %i/share/%n
install -m0644 mouse.* sample.* %i/share/doc/%n/tutorial
install -m0644 mapmaker.html %i/share/doc/%n/tutorial/mapmaker.html
install -m0644 *-help.html %i/share/doc/%n/html
<<
RuntimeVars: <<
MAPM_LIB: %p/share/%n
<<
DocFiles: CHANGE.ME COVER.ME FEED.ME INSTALL.ME READ.ME WANT.ME mapmaker.ps
qtl.ps
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits