diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2007-11-04 22:57:47 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2007-11-04 22:57:47 +0000 |
commit | c6c09da96de4eb55050a91a540ca7379dc08b619 (patch) | |
tree | 8f44f8e381e99103624838e0505865726a8d1f24 /dev-libs/link-grammar | |
parent | 2.1.3.18 bump. This fixes bugs #197797, #197932, #197965, #197990, (diff) | |
download | historical-c6c09da96de4eb55050a91a540ca7379dc08b619.tar.gz historical-c6c09da96de4eb55050a91a540ca7379dc08b619.tar.bz2 historical-c6c09da96de4eb55050a91a540ca7379dc08b619.zip |
fix repoman warnings and fix bug #196803
Package-Manager: portage-2.1.3.16
Diffstat (limited to 'dev-libs/link-grammar')
-rw-r--r-- | dev-libs/link-grammar/ChangeLog | 12 | ||||
-rw-r--r-- | dev-libs/link-grammar/Manifest | 45 | ||||
-rw-r--r-- | dev-libs/link-grammar/files/digest-link-grammar-4.2.4-r1 | 3 | ||||
-rw-r--r-- | dev-libs/link-grammar/files/link-grammar-4.2.4-tokenize.patch | 83 | ||||
-rw-r--r-- | dev-libs/link-grammar/link-grammar-4.2.2.ebuild | 8 | ||||
-rw-r--r-- | dev-libs/link-grammar/link-grammar-4.2.4-r1.ebuild | 36 | ||||
-rw-r--r-- | dev-libs/link-grammar/link-grammar-4.2.4.ebuild | 6 |
7 files changed, 173 insertions, 20 deletions
diff --git a/dev-libs/link-grammar/ChangeLog b/dev-libs/link-grammar/ChangeLog index 3fdab24633f0..b0ffa1fadecd 100644 --- a/dev-libs/link-grammar/ChangeLog +++ b/dev-libs/link-grammar/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-libs/link-grammar # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/ChangeLog,v 1.17 2007/08/15 10:33:19 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/ChangeLog,v 1.18 2007/11/04 22:57:47 eva Exp $ + + 04 Nov 2007; Gilles Dartiguelongue <eva@gentoo.org> + link-grammar-4.2.2.ebuild, link-grammar-4.2.4.ebuild: + fix repoman warnings + +*link-grammar-4.2.4-r1 (04 Nov 2007) + + 04 Nov 2007; Gilles Dartiguelongue <eva@gentoo.org> + +files/link-grammar-4.2.4-tokenize.patch, +link-grammar-4.2.4-r1.ebuild: + fix bug #196803 *link-grammar-4.2.4 (15 Aug 2007) diff --git a/dev-libs/link-grammar/Manifest b/dev-libs/link-grammar/Manifest index ae5ed4c74df7..f24ab6325417 100644 --- a/dev-libs/link-grammar/Manifest +++ b/dev-libs/link-grammar/Manifest @@ -1,17 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX link-grammar-4.2.4-tokenize.patch 3066 RMD160 964f1051ac5e5c9bbc9d09e481e1fc5c09b0ebba SHA1 3de415726604a2cebe096275182e558867da5d69 SHA256 cc21de0f149c9cfb0a8c7b9516c8ce4c8c60bfd661724551ae2dc54a62e1293e +MD5 31b2bc6d86dae62cbb436ccd3dd0a72b files/link-grammar-4.2.4-tokenize.patch 3066 +RMD160 964f1051ac5e5c9bbc9d09e481e1fc5c09b0ebba files/link-grammar-4.2.4-tokenize.patch 3066 +SHA256 cc21de0f149c9cfb0a8c7b9516c8ce4c8c60bfd661724551ae2dc54a62e1293e files/link-grammar-4.2.4-tokenize.patch 3066 DIST link-grammar-4.2.2.tar.gz 742163 RMD160 3295fce2266c7ec1ab89c87ea44677de5777e0dc SHA1 13b695fd1b6bc1b91142abdc97bc38c3ef0d0e14 SHA256 aa8a2ecf40445b2e47f41a2c98923cc94fe39af5ee80cbc47fc88709fa5dc87d DIST link-grammar-4.2.4.tar.gz 741007 RMD160 40cdb470201a3c935c53670534613e1fdddf7c3c SHA1 68a3308f8ebe02231094e542d509f46376ad299b SHA256 e28cf49636d83c8faf487718c913d8fc9d01a54c1c63dc9cd995f4e669a4a740 -EBUILD link-grammar-4.2.2.ebuild 786 RMD160 e1437c7c529aa4eed0f29ff82e5bada17b6b5432 SHA1 12c2c6419293ba7aa5c294367e5d2213f0fc247e SHA256 2cfd9ad8248e3ad26780ced240b98360bd87492b52b556b446fd2b9dcbb6eb6a -MD5 e29908fe4bc40bdb853bf258df109f11 link-grammar-4.2.2.ebuild 786 -RMD160 e1437c7c529aa4eed0f29ff82e5bada17b6b5432 link-grammar-4.2.2.ebuild 786 -SHA256 2cfd9ad8248e3ad26780ced240b98360bd87492b52b556b446fd2b9dcbb6eb6a link-grammar-4.2.2.ebuild 786 -EBUILD link-grammar-4.2.4.ebuild 788 RMD160 c7a7324c6a16139a1f3555ebde738a65658c02b8 SHA1 febaa98614dab15103d117bea70b22332493e1e2 SHA256 6325e0f4d9209b7307706460ae5d2b379af879b6df02492d0ee4d40fea3d15ab -MD5 b7f1e562db65293787aa45d57579a74d link-grammar-4.2.4.ebuild 788 -RMD160 c7a7324c6a16139a1f3555ebde738a65658c02b8 link-grammar-4.2.4.ebuild 788 -SHA256 6325e0f4d9209b7307706460ae5d2b379af879b6df02492d0ee4d40fea3d15ab link-grammar-4.2.4.ebuild 788 -MISC ChangeLog 2464 RMD160 5fdc1687f0bb32772d71fb157cfbf04fad6a4ef7 SHA1 72910c54d56558651a2cfb8caffb593d9f35cf12 SHA256 ed8e591261720666e3749740004c968a411d680a3ac7e74d68565429d1282359 -MD5 e5dbb745f444c7bb56b4cfca0410f9a5 ChangeLog 2464 -RMD160 5fdc1687f0bb32772d71fb157cfbf04fad6a4ef7 ChangeLog 2464 -SHA256 ed8e591261720666e3749740004c968a411d680a3ac7e74d68565429d1282359 ChangeLog 2464 +EBUILD link-grammar-4.2.2.ebuild 775 RMD160 d9ee74158c012a122fe8f12d31e5f61a595c453a SHA1 3f7afc97e0a0ac2f8276ee44053e0f79f005abfd SHA256 0a50985081cf1f56bac20bf50ff5f2f1eb2e2808e5e8ce103b0da917a8c7c55b +MD5 36a41baa713f4a55f8a7b545f8134ed6 link-grammar-4.2.2.ebuild 775 +RMD160 d9ee74158c012a122fe8f12d31e5f61a595c453a link-grammar-4.2.2.ebuild 775 +SHA256 0a50985081cf1f56bac20bf50ff5f2f1eb2e2808e5e8ce103b0da917a8c7c55b link-grammar-4.2.2.ebuild 775 +EBUILD link-grammar-4.2.4-r1.ebuild 892 RMD160 9c9a8c6f2ef58dfc78da1a86f3e148f818dc89fb SHA1 49fb94a9b081b7267331f9cc2c20e340758484de SHA256 638606265ba1251a5a7362e830d5c89ba8baa2e62774c3991e718044c9b33cf5 +MD5 c405ab6c8886239062b2d2f81d841f9a link-grammar-4.2.4-r1.ebuild 892 +RMD160 9c9a8c6f2ef58dfc78da1a86f3e148f818dc89fb link-grammar-4.2.4-r1.ebuild 892 +SHA256 638606265ba1251a5a7362e830d5c89ba8baa2e62774c3991e718044c9b33cf5 link-grammar-4.2.4-r1.ebuild 892 +EBUILD link-grammar-4.2.4.ebuild 782 RMD160 d1a920b91ec3900f8beeb8525f1172123fd7a132 SHA1 6d008c510379127c34f478dbeca14fe83e00185a SHA256 46c42166c9635f20b80f41bbc6b9321c6e2f1b2cb0e5f1fff5df154ab96357e2 +MD5 932dd763073e17708fc86fe4a826a113 link-grammar-4.2.4.ebuild 782 +RMD160 d1a920b91ec3900f8beeb8525f1172123fd7a132 link-grammar-4.2.4.ebuild 782 +SHA256 46c42166c9635f20b80f41bbc6b9321c6e2f1b2cb0e5f1fff5df154ab96357e2 link-grammar-4.2.4.ebuild 782 +MISC ChangeLog 2784 RMD160 ba7e2fa895b4b5f18ddcb47ad66af3c2281bf09a SHA1 e7ff4fe49b7a4748f16ef45124f501d65ea33438 SHA256 42585929ad22797230e72a1352dc1b851b296158a029bc26b2ee688660cc901a +MD5 d201d9d50f7559145795e44e7d3b36ea ChangeLog 2784 +RMD160 ba7e2fa895b4b5f18ddcb47ad66af3c2281bf09a ChangeLog 2784 +SHA256 42585929ad22797230e72a1352dc1b851b296158a029bc26b2ee688660cc901a ChangeLog 2784 MISC metadata.xml 507 RMD160 11e5e0483b675ac84eed8159f3dd67a0235dac37 SHA1 60aa5f8abdf19612407a6bbdc36f1c1a2f4eecaf SHA256 ff2865dbda5b595aff5b7a570cc2301f83e3503d7c4e643e9508fe39666a6b11 MD5 fdb3e63bc1ea55843677f858b9b119e0 metadata.xml 507 RMD160 11e5e0483b675ac84eed8159f3dd67a0235dac37 metadata.xml 507 @@ -22,3 +33,13 @@ SHA256 5de8bf90d43da2acad33c2244e798e2d7fdd6f76e341eb6236e3ebb5c34126a2 files/di MD5 b290c42cb4e906a07ee98a73a0665b83 files/digest-link-grammar-4.2.4 256 RMD160 bf1a6d1cd3d4a30c5bb91eb9f3e4b1c7fbc50309 files/digest-link-grammar-4.2.4 256 SHA256 91b59dc19bd0c14ffe9b86aa912d8ebc1d1c5bc95de02b11d9689da58d5f8af2 files/digest-link-grammar-4.2.4 256 +MD5 b290c42cb4e906a07ee98a73a0665b83 files/digest-link-grammar-4.2.4-r1 256 +RMD160 bf1a6d1cd3d4a30c5bb91eb9f3e4b1c7fbc50309 files/digest-link-grammar-4.2.4-r1 256 +SHA256 91b59dc19bd0c14ffe9b86aa912d8ebc1d1c5bc95de02b11d9689da58d5f8af2 files/digest-link-grammar-4.2.4-r1 256 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFHLk511fmVwcYIWAYRArmxAKDqa9yhkA+cZS9qh6ug8Z2ldqWkZQCfXxMq +iRtzBi0LmtuRVnw6y6RXJ+o= +=uuNF +-----END PGP SIGNATURE----- diff --git a/dev-libs/link-grammar/files/digest-link-grammar-4.2.4-r1 b/dev-libs/link-grammar/files/digest-link-grammar-4.2.4-r1 new file mode 100644 index 000000000000..c0256384417a --- /dev/null +++ b/dev-libs/link-grammar/files/digest-link-grammar-4.2.4-r1 @@ -0,0 +1,3 @@ +MD5 56ed2a55cc6d2c8ec013b75bd0bcc01b link-grammar-4.2.4.tar.gz 741007 +RMD160 40cdb470201a3c935c53670534613e1fdddf7c3c link-grammar-4.2.4.tar.gz 741007 +SHA256 e28cf49636d83c8faf487718c913d8fc9d01a54c1c63dc9cd995f4e669a4a740 link-grammar-4.2.4.tar.gz 741007 diff --git a/dev-libs/link-grammar/files/link-grammar-4.2.4-tokenize.patch b/dev-libs/link-grammar/files/link-grammar-4.2.4-tokenize.patch new file mode 100644 index 000000000000..34a9eb0a1c8f --- /dev/null +++ b/dev-libs/link-grammar/files/link-grammar-4.2.4-tokenize.patch @@ -0,0 +1,83 @@ +Index: tokenize.c +=================================================================== +RCS file: /cvsroot/link-grammar/link-grammar/tokenize.c,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -b -B -r1.3 -r1.4 +--- link-grammar/link-grammar/tokenize.c 16 Aug 2006 17:07:02 -0000 1.3 ++++ link-grammar/link-grammar/tokenize.c 27 Oct 2007 19:03:40 -0000 1.4 +@@ -172,7 +172,8 @@ + used in a sentence. + */ + +- ++#undef MIN ++#define MIN(a, b) (((a) < (b)) ? (a) : (b)) + + static int separate_word(Sentence sent, char *w, char *wend, int is_first_word, int quote_found) { + /* w points to a string, wend points to the char one after the end. The +@@ -256,8 +257,8 @@ + + for (n_r_stripped = 0; n_r_stripped < MAX_STRIP; n_r_stripped++) { + +- strncpy(word, w, wend-w); +- word[wend-w] = '\0'; ++ strncpy(word, w, MIN(wend-w, MAX_WORD)); ++ word[MIN(wend-w, MAX_WORD)] = '\0'; + if (wend == w) break; /* it will work without this */ + + if (boolean_dictionary_lookup(sent->dict, word) || is_initials_word(word)) break; +@@ -285,8 +286,8 @@ + /* Now we strip off suffixes...w points to the remaining word, "wend" to the end of the word. */ + + s_stripped = -1; +- strncpy(word, w, wend-w); +- word[wend-w] = '\0'; ++ strncpy(word, w, MIN(wend-w, MAX_WORD)); ++ word[MIN(wend-w, MAX_WORD)] = '\0'; + word_is_in_dict=0; + + if (boolean_dictionary_lookup(sent->dict, word) || is_initials_word(word)) word_is_in_dict=1; +@@ -309,16 +310,16 @@ + + if(s_ok==1 || i==s_strippable) { + +- strncpy(newword, w, (wend-len)-w); +- newword[(wend-len)-w] = '\0'; ++ strncpy(newword, w, MIN((wend-len)-w, MAX_WORD)); ++ newword[MIN((wend-len)-w, MAX_WORD)] = '\0'; + + /* Check if the remainder is in the dictionary; for the no-suffix case, it won't be */ + if (boolean_dictionary_lookup(sent->dict, newword)) { + if(verbosity>1) if(i< s_strippable) printf("Splitting word into two: %s-%s\n", newword, suffix[i]); + s_stripped = i; + wend -= len; +- strncpy(word, w, wend-w); +- word[wend-w] = '\0'; ++ strncpy(word, w, MIN(wend-w, MAX_WORD)); ++ word[MIN(wend-w, MAX_WORD)] = '\0'; + break; + } + +@@ -326,16 +327,16 @@ + else { + for (j=0; j<p_strippable; j++) { + if (strncmp(w, prefix[j], strlen(prefix[j])) == 0) { +- strncpy(newword, w+strlen(prefix[j]), (wend-len)-(w+strlen(prefix[j]))); +- newword[(wend-len)-(w+strlen(prefix[j]))]='\0'; ++ strncpy(newword, w+strlen(prefix[j]), MIN((wend-len)-(w+strlen(prefix[j])), MAX_WORD)); ++ newword[MIN((wend-len)-(w+strlen(prefix[j])), MAX_WORD)]='\0'; + if(boolean_dictionary_lookup(sent->dict, newword)) { + if(verbosity>1) if(i < s_strippable) printf("Splitting word into three: %s-%s-%s\n", prefix[j], newword, suffix[i]); + if (!issue_sentence_word(sent, prefix[j])) return FALSE; + if(i < s_strippable) s_stripped = i; + wend -= len; + w += strlen(prefix[j]); +- strncpy(word, w, wend-w); +- word[wend-w] = '\0'; ++ strncpy(word, w, MIN(wend-w, MAX_WORD)); ++ word[MIN(wend-w, MAX_WORD)] = '\0'; + break; + } + } + diff --git a/dev-libs/link-grammar/link-grammar-4.2.2.ebuild b/dev-libs/link-grammar/link-grammar-4.2.2.ebuild index f3c436e16311..64a8b732b9c6 100644 --- a/dev-libs/link-grammar/link-grammar-4.2.2.ebuild +++ b/dev-libs/link-grammar/link-grammar-4.2.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.2.2.ebuild,v 1.9 2007/07/12 02:25:34 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.2.2.ebuild,v 1.10 2007/11/04 22:57:47 eva Exp $ DESCRIPTION=" The Link Grammar Parser is a syntactic parser of English, based on link grammar, an original theory of English syntax." @@ -21,6 +21,6 @@ src_configure() { } src_install() { - make DESTDIR=${D} install || die "install failed" - dodoc LICENSE README + make DESTDIR="${D}" install || die "install failed" + dodoc README } diff --git a/dev-libs/link-grammar/link-grammar-4.2.4-r1.ebuild b/dev-libs/link-grammar/link-grammar-4.2.4-r1.ebuild new file mode 100644 index 000000000000..8b2a2d8aadb7 --- /dev/null +++ b/dev-libs/link-grammar/link-grammar-4.2.4-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.2.4-r1.ebuild,v 1.1 2007/11/04 22:57:47 eva Exp $ + +inherit eutils + +DESCRIPTION="The Link Grammar Parser is a syntactic parser of English, based on +link grammar, an original theory of English syntax." +HOMEPAGE="http://bobo.link.cs.cmu.edu/link/" +SRC_URI="http://www.abisource.com/downloads/link-grammar/${PV}/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +#broken make files :-/ +MAKEOPTS="${MAKEOPTS} -j1" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix bug #196803 + epatch "${FILESDIR}"/${P}-tokenize.c +} + +src_compile() { + econf || die "configure failed" + emake +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dodoc README +} diff --git a/dev-libs/link-grammar/link-grammar-4.2.4.ebuild b/dev-libs/link-grammar/link-grammar-4.2.4.ebuild index 43e248c13733..e66b4425c486 100644 --- a/dev-libs/link-grammar/link-grammar-4.2.4.ebuild +++ b/dev-libs/link-grammar/link-grammar-4.2.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.2.4.ebuild,v 1.1 2007/08/15 10:33:19 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.2.4.ebuild,v 1.2 2007/11/04 22:57:47 eva Exp $ DESCRIPTION=" The Link Grammar Parser is a syntactic parser of English, based on link grammar, an original theory of English syntax." @@ -21,6 +21,6 @@ src_configure() { } src_install() { - make DESTDIR=${D} install || die "install failed" - dodoc LICENSE README + make DESTDIR="${D}" install || die "install failed" + dodoc README } |