diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-11-28 08:56:48 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-11-28 08:56:48 +0000 |
commit | 6173ddae2758bd0f7d9d4a49e83df5b102bf58ad (patch) | |
tree | 2d0c6195d4e01835496e746409ce3bbc42fa0664 /sci-biology/readseq | |
parent | Version bump (diff) | |
download | historical-6173ddae2758bd0f7d9d4a49e83df5b102bf58ad.tar.gz historical-6173ddae2758bd0f7d9d4a49e83df5b102bf58ad.tar.bz2 historical-6173ddae2758bd0f7d9d4a49e83df5b102bf58ad.zip |
Fixes fo various problems, #346883
Package-Manager: portage-2.2.0_alpha5/cvs/Linux x86_64
Diffstat (limited to 'sci-biology/readseq')
-rw-r--r-- | sci-biology/readseq/ChangeLog | 12 | ||||
-rw-r--r-- | sci-biology/readseq/Manifest | 17 | ||||
-rw-r--r-- | sci-biology/readseq/files/19930201-buffer.patch | 13 | ||||
-rw-r--r-- | sci-biology/readseq/files/19930201-getline.patch | 260 | ||||
-rw-r--r-- | sci-biology/readseq/files/19930201-impl-dec.patch | 24 | ||||
-rw-r--r-- | sci-biology/readseq/files/19930201-ldflags.patch | 13 | ||||
-rw-r--r-- | sci-biology/readseq/readseq-19930201-r1.ebuild | 37 |
7 files changed, 373 insertions, 3 deletions
diff --git a/sci-biology/readseq/ChangeLog b/sci-biology/readseq/ChangeLog index 8da90c23034d..5489094e21cf 100644 --- a/sci-biology/readseq/ChangeLog +++ b/sci-biology/readseq/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-biology/readseq -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/readseq/ChangeLog,v 1.8 2009/03/24 21:21:41 ribosome Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/readseq/ChangeLog,v 1.9 2010/11/28 08:56:48 jlec Exp $ + +*readseq-19930201-r1 (28 Nov 2010) + + 28 Nov 2010; Justin Lecher <jlec@gentoo.org> +files/19930201-buffer.patch, + +files/19930201-getline.patch, +files/19930201-ldflags.patch, + +readseq-19930201-r1.ebuild, +files/19930201-impl-dec.patch: + Fixes fo various problems, #346883 + 24 Mar 2009; Olivier Fisette <ribosome@gentoo.org> metadata.xml: Giving up maintainership of this package. diff --git a/sci-biology/readseq/Manifest b/sci-biology/readseq/Manifest index bf754dd18803..e51487ab7052 100644 --- a/sci-biology/readseq/Manifest +++ b/sci-biology/readseq/Manifest @@ -1,6 +1,21 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 19930201-buffer.patch 466 RMD160 f6da8828e1f0264a87ae903915fceac73106f4db SHA1 cda57f64825c8b6cabae691cce59f2e65268c856 SHA256 6718b321adbc3dfab471506b01acd7d0f6d4f0df77a258974333063cc2fbec18 +AUX 19930201-getline.patch 7833 RMD160 035e913771aca386868162ed809d97e544d9e75e SHA1 aef69225768b6f4ea08249fe06352f85cf3c9195 SHA256 bc68cd66bf6ff41d00007600b07e6cafddc826db24cd31b896fad2ac17882d76 +AUX 19930201-impl-dec.patch 511 RMD160 6c0d2d0cfacc62abf0feeaa4c915927b7853b06e SHA1 f74667ec4e1178a5dab49feb560dc764bb5060b9 SHA256 c7d14b22de4c905b382d897777a2615518c8d386d78636a9151b88e8e49e3f89 +AUX 19930201-ldflags.patch 377 RMD160 af148b3061679ff3bd86d35d52fd739f8381d7c1 SHA1 7b53fb8142947fc984702272313ef5d933229ff3 SHA256 ac36fb1c7771f0bfb790cfe6f835b790d2c318c8459d8989734ec218bfcb1e6f DIST readseq-source-20080420.zip 627341 RMD160 7931de08b53548908de3caee835e5a2e3398fe3b SHA1 89e250de9270f2d89f2064b08a23a165f5edec05 SHA256 d91ccadcbf5fde29525c639ece6ae132e0db863a7e63f96f69647e591617e8dd DIST readseq_1.orig.tar.gz 54557 RMD160 eb9f08df46f4cb439a22657c1ddb724f9b4a5e3d SHA1 474839186eec28f650ac89a33829673fa40c3bbb SHA256 b704d7a12c5d834390f3ed4233f1409c5f1ed53b0b9accf5ab632a513de1183c +EBUILD readseq-19930201-r1.ebuild 892 RMD160 16d75b210a81269cc14ad37bfe1165f13b85c4df SHA1 9647228b38b5dea94e68b9718746c4286c731e1a SHA256 f66bab9363a1429f8d3c08da1c1dd5655cd55cfb754f2ddb8663de2b737e982e EBUILD readseq-19930201.ebuild 638 RMD160 cac475202534c8c8616043ba8da31e19321812b4 SHA1 3e947d605d38e97ea080bfbcc733150e4d5e4299 SHA256 367ad4fb3a0e0cb362304b4bb76177c3404a889f406c544018dcd06406560889 EBUILD readseq-20080420.ebuild 1277 RMD160 bf50fc7068b0b100d7db8f2ac57793fefdabb4b6 SHA1 bf36fc9f3acc8fd60eb024120d0ca8ae81bebfdd SHA256 6e728f03248b8bd1d5005e5acd3d9283be5f4016ccefb2f17a5bdca0d606e958 -MISC ChangeLog 1787 RMD160 96fb7f34c69cc975c3e0f647c7d4d9e650a5638a SHA1 909540ca9f422c17af40f6a583b78bb0a3dcd742 SHA256 b8832fb1fe9ee86f5257dec381b9b325dbd62a9630ca90164dc96c415345cea1 +MISC ChangeLog 2062 RMD160 8913bad5cbec666eb04a2c9259ee5b2914ee5246 SHA1 08b9047c3245f391468c0eecb78888d52be945c4 SHA256 2de6be07a686136eecf4f0f7c0f963df2c54a0461d457dc6d082e715035546f7 MISC metadata.xml 311 RMD160 ca3cec6e7b54692719d494eba780fe3684214f80 SHA1 cdc99cda84616c5cd1dcabb52b02caf706eb1600 SHA256 d6083238a62c4053d7a86fa23a7bb537dd34e0c5f43d05f258b0e5ff92fa6137 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkzyGVUACgkQgAnW8HDreRYWmwCglC6OBPnrw4/gk8njy5/oZHPr +mz0AoIqWJtRr6YJsEId9MftTriH2wJeS +=cL5F +-----END PGP SIGNATURE----- diff --git a/sci-biology/readseq/files/19930201-buffer.patch b/sci-biology/readseq/files/19930201-buffer.patch new file mode 100644 index 000000000000..8229074dbbc3 --- /dev/null +++ b/sci-biology/readseq/files/19930201-buffer.patch @@ -0,0 +1,13 @@ +diff --git a/ureadseq.c b/ureadseq.c +index 337b16f..3f8e7f6 100644 +--- a/ureadseq.c ++++ b/ureadseq.c +@@ -1578,7 +1578,7 @@ short writeSeq(FILE *outf, const char *seq, const long seqlen, + + short linesout = 0, seqtype = kNucleic; + long i, j, l, l1, ibase; +- char idword[31], endstr[10]; ++ char idword[31], endstr[32]; + char seqnamestore[128], *seqname = seqnamestore; + char s[kMaxseqwidth], *cp; + char nameform[10], numform[10], nocountsymbols[10]; diff --git a/sci-biology/readseq/files/19930201-getline.patch b/sci-biology/readseq/files/19930201-getline.patch new file mode 100644 index 000000000000..34f6339209de --- /dev/null +++ b/sci-biology/readseq/files/19930201-getline.patch @@ -0,0 +1,260 @@ +diff --git a/ureadseq.c b/ureadseq.c +index b11115d..337b16f 100644 +--- a/ureadseq.c ++++ b/ureadseq.c +@@ -136,7 +136,7 @@ Local void readline(FILE *f, char *s, long *linestart) + } + } + +-Local void getline(struct ReadSeqVars *V) ++Local void ghettoline(struct ReadSeqVars *V) + { + readline(V->f, V->s, &V->linestart); + } +@@ -215,7 +215,7 @@ Local void readLoop(short margin, boolean addfirst, + + if (addfirst) addseq(V->s, V); + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + V->done |= (*endTest)( &addend, &ungetend, V); + if (V->addit && (addend || !V->done) && (strlen(V->s) > margin)) { +@@ -246,7 +246,7 @@ Local void readIG(struct ReadSeqVars *V) + + while (!V->allDone) { + do { +- getline(V); ++ ghettoline(V); + for (si= V->s; *si != 0 && *si < ' '; si++) *si= ' '; /* drop controls */ + if (*si == 0) *V->s= 0; /* chop line to empty */ + } while (! (feof(V->f) || ((*V->s != 0) && (*V->s != ';') ) )); +@@ -272,13 +272,13 @@ Local void readStrider(struct ReadSeqVars *V) + { /* ? only 1 seq/file ? */ + + while (!V->allDone) { +- getline(V); ++ ghettoline(V); + if (strstr(V->s,"; DNA sequence ") == V->s) + strcpy(V->seqid, (V->s)+16); + else + strcpy(V->seqid, (V->s)+1); + while ((!feof(V->f)) && (*V->s == ';')) { +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + else readLoop(0, true, endStrider, V); +@@ -298,16 +298,16 @@ Local void readPIR(struct ReadSeqVars *V) + + while (!V->allDone) { + while (! (feof(V->f) || strstr(V->s,"ENTRY") || strstr(V->s,"SEQUENCE")) ) +- getline(V); ++ ghettoline(V); + strcpy(V->seqid, (V->s)+16); + while (! (feof(V->f) || strstr(V->s,"SEQUENCE") == V->s)) +- getline(V); ++ ghettoline(V); + readLoop(0, false, endPIR, V); + + if (!V->allDone) { + while (! (feof(V->f) || ((*V->s != 0) + && (strstr( V->s,"ENTRY") == V->s)))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -327,13 +327,13 @@ Local void readGenBank(struct ReadSeqVars *V) + while (!V->allDone) { + strcpy(V->seqid, (V->s)+12); + while (! (feof(V->f) || strstr(V->s,"ORIGIN") == V->s)) +- getline(V); ++ ghettoline(V); + readLoop(0, false, endGB, V); + + if (!V->allDone) { + while (! (feof(V->f) || ((*V->s != 0) + && (strstr( V->s,"LOCUS") == V->s)))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -364,11 +364,11 @@ Local void readNBRF(struct ReadSeqVars *V) + { + while (!V->allDone) { + strcpy(V->seqid, (V->s)+4); +- getline(V); /*skip title-junk line*/ ++ ghettoline(V); /*skip title-junk line*/ + readLoop(0, false, endNBRF, V); + if (!V->allDone) { + while (!(feof(V->f) || (*V->s != 0 && *V->s == '>'))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -390,7 +390,7 @@ Local void readPearson(struct ReadSeqVars *V) + readLoop(0, false, endPearson, V); + if (!V->allDone) { + while (!(feof(V->f) || ((*V->s != 0) && (*V->s == '>')))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -410,14 +410,14 @@ Local void readEMBL(struct ReadSeqVars *V) + while (!V->allDone) { + strcpy(V->seqid, (V->s)+5); + do { +- getline(V); ++ ghettoline(V); + } while (!(feof(V->f) | (strstr(V->s,"SQ ") == V->s))); + + readLoop(0, false, endEMBL, V); + if (!V->allDone) { + while (!(feof(V->f) | + ((*V->s != '\0') & (strstr(V->s,"ID ") == V->s)))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -437,13 +437,13 @@ Local void readZuker(struct ReadSeqVars *V) + /*! 1st string is Zuker's Fortran format */ + + while (!V->allDone) { +- getline(V); /*s == "seqLen seqid string..."*/ ++ ghettoline(V); /*s == "seqLen seqid string..."*/ + strcpy(V->seqid, (V->s)+6); + readLoop(0, false, endZuker, V); + if (!V->allDone) { + while (!(feof(V->f) | + ((*V->s != '\0') & (*V->s == '(')))) +- getline(V); ++ ghettoline(V); + } + if (feof(V->f)) V->allDone = true; + } +@@ -486,7 +486,7 @@ Local void readPlain(struct ReadSeqVars *V) + do { + addseq(V->s, V); + V->done = feof(V->f); +- getline(V); ++ ghettoline(V); + } while (!V->done); + if (V->choice == kListSequences) addinfo(V->seqid, V); + V->allDone = true; +@@ -498,7 +498,7 @@ Local void readUWGCG(struct ReadSeqVars *V) + /* + 10nov91: Reading GCG files casued duplication of last line when + EOF followed that line !!! +- fix: getline now sets *V->s = 0 ++ fix: ghettoline now sets *V->s = 0 + */ + char *si; + +@@ -512,7 +512,7 @@ Local void readUWGCG(struct ReadSeqVars *V) + else if (si = strstr(V->seqid,"..")) *si = 0; + do { + V->done = feof(V->f); +- getline(V); ++ ghettoline(V); + if (!V->done) addseq((V->s), V); + } while (!V->done); + if (V->choice == kListSequences) addinfo(V->seqid, V); +@@ -531,7 +531,7 @@ Local void readOlsen(struct ReadSeqVars *V) + if (V->addit) V->seqlen = 0; + rewind(V->f); V->nseq= 0; + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + + if (V->done && !(*V->s)) break; +@@ -614,7 +614,7 @@ Local void readMSF(struct ReadSeqVars *V) + if (V->addit) V->seqlen = 0; + rewind(V->f); V->nseq= 0; + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + + if (V->done && !(*V->s)) break; +@@ -685,7 +685,7 @@ Local void readPAUPinterleaved(struct ReadSeqVars *V) + domatch= (V->matchchar > 0); + + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + + if (V->done && !(*V->s)) break; +@@ -766,7 +766,7 @@ Local void readPAUPsequential(struct ReadSeqVars *V) + /* rewind(V->f); V->nseq= 0; << do in caller !*/ + indata= true; /* call here after we find "matrix" */ + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + + if (V->done && !(*V->s)) break; +@@ -851,7 +851,7 @@ Local void readPhylipInterleaved(struct ReadSeqVars *V) + /* fprintf(stderr,"Phylip-ileaf: topnseq=%d topseqlen=%d\n",V->topnseq, V->topseqlen); */ + + do { +- getline(V); ++ ghettoline(V); + V->done = feof(V->f); + + if (V->done && !(*V->s)) break; +@@ -904,7 +904,7 @@ Local void readPhylipSequential(struct ReadSeqVars *V) + while (isdigit(*si)) si++; + skipwhitespace(si); + V->topseqlen= atol(si); +- getline(V); ++ ghettoline(V); + while (!V->allDone) { + V->seqlencount= 0; + strncpy(V->seqid, (V->s), 10); +@@ -935,10 +935,10 @@ Local void readSeqMain( + V->err = eFileNotFound; + else { + +- for (l = skiplines_; l > 0; l--) getline( V); ++ for (l = skiplines_; l > 0; l--) ghettoline( V); + + do { +- getline( V); ++ ghettoline( V); + for (l= strlen(V->s); (l > 0) && (V->s[l] == ' '); l--) ; + } while ((l == 0) && !feof(V->f)); + +@@ -963,7 +963,7 @@ Local void readSeqMain( + char *cp; + /* rewind(V->f); V->nseq= 0; ?? assume it is at top ?? skiplines ... */ + while (!done) { +- getline( V); ++ ghettoline( V); + tolowerstr( V->s); + if (strstr( V->s, "matrix")) done= true; + if (strstr( V->s, "interleav")) interleaved= true; +@@ -995,7 +995,7 @@ Local void readSeqMain( + break; + + case kFitch : +- strcpy(V->seqid, V->s); getline(V); ++ strcpy(V->seqid, V->s); ghettoline(V); + readFitch(V); + break; + +@@ -1003,7 +1003,7 @@ Local void readSeqMain( + do { + gotuw = (strstr(V->s,"..") != NULL); + if (gotuw) readUWGCG(V); +- getline(V); ++ ghettoline(V); + } while (!(feof(V->f) || V->allDone)); + break; + } diff --git a/sci-biology/readseq/files/19930201-impl-dec.patch b/sci-biology/readseq/files/19930201-impl-dec.patch new file mode 100644 index 000000000000..8e9448224e2c --- /dev/null +++ b/sci-biology/readseq/files/19930201-impl-dec.patch @@ -0,0 +1,24 @@ +diff --git a/readseq.c b/readseq.c +index 305d23a..9b02a17 100644 +--- a/readseq.c ++++ b/readseq.c +@@ -171,6 +171,7 @@ link -w -o readseq -t MPST -c 'MPS ' + #include <stdio.h> + #include <string.h> + #include <ctype.h> ++#include <stdlib.h> + + #include "ureadseq.h" + +diff --git a/ureadseq.c b/ureadseq.c +index 3f8e7f6..799b315 100644 +--- a/ureadseq.c ++++ b/ureadseq.c +@@ -20,6 +20,7 @@ + #include <stdio.h> + #include <ctype.h> + #include <string.h> ++#include <stdlib.h> + + #define UREADSEQ_G + #include "ureadseq.h" diff --git a/sci-biology/readseq/files/19930201-ldflags.patch b/sci-biology/readseq/files/19930201-ldflags.patch new file mode 100644 index 000000000000..e1929c634479 --- /dev/null +++ b/sci-biology/readseq/files/19930201-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 40a5a92..f073aaa 100644 +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,7 @@ all: build test + + build: $(SOURCES) + @echo "Compiling readseq..." +- $(CC) $(CFLAGS) -o readseq readseq.c ureadseq.c ++ $(CC) $(LDFLAGS) $(CFLAGS) -o readseq readseq.c ureadseq.c + + # if using NCBI, uncomment these lines in place of build: above + #build: $(SOURCES) diff --git a/sci-biology/readseq/readseq-19930201-r1.ebuild b/sci-biology/readseq/readseq-19930201-r1.ebuild new file mode 100644 index 000000000000..89add3a9535b --- /dev/null +++ b/sci-biology/readseq/readseq-19930201-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/readseq/readseq-19930201-r1.ebuild,v 1.1 2010/11/28 08:56:48 jlec Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="Reads and writes nucleic/protein sequences in various formats." +SRC_URI="mirror://debian/pool/main/r/readseq/readseq_1.orig.tar.gz" +HOMEPAGE="http://iubio.bio.indiana.edu/soft/molbio/readseq/" +LICENSE="public-domain" + +KEYWORDS="~amd64 ~sparc ~x86" +SLOT="0" +IUSE="" + +S="${WORKDIR}/readseq-1" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PV}-getline.patch \ + "${FILESDIR}"/${PV}-buffer.patch \ + "${FILESDIR}"/${PV}-impl-dec.patch \ + "${FILESDIR}"/${PV}-ldflags.patch +} + +src_compile() { + emake -e \ + CC=$(tc-getCC) \ + build || die +} + +src_install() { + dobin readseq || die + dodoc Readme Readseq.help || die +} |