diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-30 02:19:25 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-30 02:19:25 +0000 |
commit | 520c1b7cab476810c14b288e621d36d94a18f085 (patch) | |
tree | e4e65f3aa21a014a370cc70c17bb2ead37cad099 /dev-python/reverend | |
parent | Version bump. Set SUPPORT_PYTHON_ABIS. (diff) | |
download | historical-520c1b7cab476810c14b288e621d36d94a18f085.tar.gz historical-520c1b7cab476810c14b288e621d36d94a18f085.tar.bz2 historical-520c1b7cab476810c14b288e621d36d94a18f085.zip |
Delete older ebuild.
Diffstat (limited to 'dev-python/reverend')
-rw-r--r-- | dev-python/reverend/files/reverend-0.3-email.patch | 63 | ||||
-rw-r--r-- | dev-python/reverend/reverend-0.3.ebuild | 34 |
2 files changed, 0 insertions, 97 deletions
diff --git a/dev-python/reverend/files/reverend-0.3-email.patch b/dev-python/reverend/files/reverend-0.3-email.patch deleted file mode 100644 index 6b343d61b7a0..000000000000 --- a/dev-python/reverend/files/reverend-0.3-email.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- reverend/guessers/email.py 2006-04-25 00:15:27.000000000 +0200 -+++ reverend/guessers/email.py 2006-04-25 01:12:16.000000000 +0200 -@@ -9,7 +9,6 @@ - import email - - from reverend.thomas import Bayes --from reverend.splitter import Splitter - - - class EmailClassifier(Bayes): -@@ -19,19 +18,22 @@ - # This should return a list of strings - # which will be used as the key into - # the table of token counts -- tokens = self.getHeaderTokens(msg) -- tokens += self.getBodyTokens(msg) -- -+ for tok in self.getHeaderTokens(msg): -+ yield tok -+ -+ for tok in self.getBodyTokens(msg): -+ yield tok -+ - # Get some tokens that are generated from the - # header and the structure -- tokens += self.getMetaTokens(msg) -- return tokens -+ for tok in self.getMetaTokens(msg): -+ yield tok - - def getBodyTokens(self, msg): - text = self.getTextPlain(msg) - if text is None: - text = '' -- tl = self.splitter.split(text) -+ tl = self._tokenizer.tokenize(text) - return tl - - def getHeaderTokens(self, msg): -@@ -40,12 +42,12 @@ - text += msg.get('from','fromnoone') + ' ' - text += msg.get('to','tonoone') + ' ' - text += msg.get('cc','ccnoone') + ' ' -- tl = self.splitter.split(text) -+ tl = self._tokenizer.tokenize(text) - return tl - - def getTextPlain(self, msg): - for part in msg.walk(): -- typ = part.get_type() -+ typ = part.get_content_type() - if typ and typ.lower() == "text/plain": - text = part.get_payload(decode=True) - return text -@@ -53,7 +55,7 @@ - - def getTextHtml(self, msg): - for part in msg.walk(): -- typ = part.get_type() -+ typ = part.get_content_type() - if typ and typ.lower() == "text/html": - text = part.get_payload(decode=False) - return text diff --git a/dev-python/reverend/reverend-0.3.ebuild b/dev-python/reverend/reverend-0.3.ebuild deleted file mode 100644 index 8f47f102d3c0..000000000000 --- a/dev-python/reverend/reverend-0.3.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/reverend/reverend-0.3.ebuild,v 1.2 2008/12/31 03:22:30 mr_bones_ Exp $ - -inherit distutils - -MY_P=R${P#r} - -DESCRIPTION="Reverend - Simple Bayesian classifier" -SRC_URI="mirror://sourceforge/reverend/${MY_P}.tar.gz" -HOMEPAGE="http://divmod.org/trac/wiki/DivmodReverend" -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples" - -DEPEND="virtual/python" - -DOCS="README.txt changelog.txt" -S="${WORKDIR}/${MY_P}" - -src_unpack() { - distutils_src_unpack - epatch "${FILESDIR}/${P}-email.patch" -} - -src_install() { - distutils_src_install - - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins examples/* - fi -} |