1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/biology/emboss/files/patch-embindex.c
Thierry Thomas 10570c91c8 For EMBOSS:
This patch brings EMBOSS up to date with the current version.

	i.   The patches included in files/ are bugfixes for files in
	     EMBOSS-3.0.0 that appeared after the release. They are
   	     documented in ftp://emboss.open-bio.org/pub/EMBOSS/fixes/README

	     This is just 'for the record' so that we remember to remove these
	     patches in the next update.

	ii.  EMBOSS is now installed by default in LOCALBASE/emboss
	     This is to avoid CONFLICTS with other ports that install files
	     with the same names. Installing EMBOSS to another PREFIX is also
	     possible.

	iii. now EMBASSY and EMBOSS both store their distfiles in the same
	     DIST_SUBDIR

	iv.  use built-in PKGMESSAGE and SUB_FILES instead of doing it the old
	     (manual) way

	For EMBASSY:

	This update brings embassy in sync with the update of EMBOSS to 3.0.0.

	Things that changed from previous version of the port:

	i.  embassy now installs by default in $LOCALBASE/emboss (the
	    new default PREFIX for emboss as well).

	ii. changed DIST_SUBDIR so that all the distfiles are put together with
	    emboss. This makes sense(TM)

	iii. incorporated new EMBASSY apps (this accounts for the changes in
	     OPTIONS and pkg-plist)

	iv.  removed obsoleted patches

	Finally, I included a sample text that could go in UPDATING.

PR:		93053
Submitted by:	Fernan Aguero <fernan (at) iib.unsam.edu.ar> (maintainer)
2006-03-31 09:43:21 +00:00

116 lines
3.4 KiB
C

--- nucleus/embindex.c.orig Mon Jan 23 12:24:54 2006
+++ nucleus/embindex.c Thu Dec 22 13:12:38 2005
@@ -973,15 +973,14 @@
if(!do_ref)
{
ajListPop(entry->files,(void **)&tmpstr);
- ajFmtPrintF(entfile,"%S%S\n",entry->directory,tmpstr);
+ ajFmtPrintF(entfile,"%S\n",tmpstr);
ajListPushApp(entry->files,(void *)tmpstr);
}
else
{
ajListPop(entry->files,(void **)&tmpstr);
ajListPop(entry->reffiles,(void **)&refstr);
- ajFmtPrintF(entfile,"%S%S %S%S\n",entry->directory,tmpstr,
- entry->directory,refstr);
+ ajFmtPrintF(entfile,"%S %S\n",tmpstr, refstr);
ajListPushApp(entry->files,(void *)tmpstr);
ajListPushApp(entry->reffiles,(void *)refstr);
}
@@ -1150,7 +1149,15 @@
entry->desecfill = (entry->pagesize - 16) / (entry->idlen + 4);
entry->txsecfill = (entry->pagesize - 16) / (entry->idlen + 4);
+ entry->idsecorder = (entry->pagesize - 60) / 24;
+ entry->idsecfill = (entry->pagesize - 60) / 20;
+ entry->acsecorder = (entry->pagesize - 60) / 24;
+ entry->acsecfill = (entry->pagesize - 60) / 20;
+
+ entry->svsecorder = (entry->pagesize - 60) / 24;
+ entry->svsecfill = (entry->pagesize - 60) / 20;
+
ajStrDel(&value);
return;
@@ -1183,28 +1190,38 @@
if(entry->do_id)
{
- entry->idcache = ajBtreeCacheNewC(basenam,ID_EXTENSION,idir,"w+",
- entry->pagesize, entry->idorder,
- entry->idfill, level,
- entry->cachesize);
+ entry->idcache = ajBtreeSecCacheNewC(basenam,ID_EXTENSION,idir,"w+",
+ entry->pagesize, entry->idorder,
+ entry->idfill, level,
+ entry->cachesize,
+ entry->idsecorder, slevel,
+ entry->idsecfill, count,
+ entry->kwlen);
ajBtreeCreateRootNode(entry->idcache,0L);
}
if(entry->do_accession)
{
- entry->accache = ajBtreeCacheNewC(basenam,AC_EXTENSION,idir,"w+",
- entry->pagesize, entry->acorder,
- entry->acfill, level,
- entry->cachesize);
+ entry->accache = ajBtreeSecCacheNewC(basenam,AC_EXTENSION,idir,"w+",
+ entry->pagesize,
+ entry->acorder, entry->acfill,
+ level,
+ entry->cachesize,
+ entry->acsecorder, slevel,
+ entry->acsecfill, count,
+ entry->kwlen);
ajBtreeCreateRootNode(entry->accache,0L);
}
if(entry->do_sv)
{
- entry->svcache = ajBtreeCacheNewC(basenam,SV_EXTENSION,idir,"w+",
- entry->pagesize, entry->svorder,
- entry->svfill, level,
- entry->cachesize);
+ entry->svcache = ajBtreeSecCacheNewC(basenam,SV_EXTENSION,idir,"w+",
+ entry->pagesize, entry->svorder,
+ entry->svfill, level,
+ entry->cachesize,
+ entry->svsecorder, slevel,
+ entry->svsecfill, count,
+ entry->kwlen);
ajBtreeCreateRootNode(entry->svcache,0L);
}
@@ -1270,18 +1287,27 @@
if(entry->do_id)
{
+ ajBtreeFreePriArray(entry->idcache);
+ ajBtreeFreeSecArray(entry->idcache);
+
ajBtreeCacheSync(entry->idcache,0L);
ajBtreeCacheDel(&entry->idcache);
}
if(entry->do_accession)
{
+ ajBtreeFreePriArray(entry->accache);
+ ajBtreeFreeSecArray(entry->accache);
+
ajBtreeCacheSync(entry->accache,0L);
ajBtreeCacheDel(&entry->accache);
}
if(entry->do_sv)
{
+ ajBtreeFreePriArray(entry->svcache);
+ ajBtreeFreeSecArray(entry->svcache);
+
ajBtreeCacheSync(entry->svcache,0L);
ajBtreeCacheDel(&entry->svcache);
}