Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nltk/
Date: Mon, 04 May 2020 11:26:35
Message-Id: 1588591526.413a74b1d2af47dee2e8204ad22673f3c9ceab0c.mgorny@gentoo
1 commit: 413a74b1d2af47dee2e8204ad22673f3c9ceab0c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 4 11:25:26 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 4 11:25:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=413a74b1
7
8 dev-python/nltk: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nltk/Manifest | 1 -
13 dev-python/nltk/nltk-3.4.5.ebuild | 59 ---------------------------------------
14 2 files changed, 60 deletions(-)
15
16 diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest
17 index 4645b2636a1..ac52e0a5715 100644
18 --- a/dev-python/nltk/Manifest
19 +++ b/dev-python/nltk/Manifest
20 @@ -1,2 +1 @@
21 -DIST nltk-3.4.5.tar.gz 2821481 BLAKE2B 9d3d6df9a951b4dfbfec335386ba0fb13c484c74a066141ebdfdb541fbec421dd72163d4028e239abd58f95a73e0eef5861574fa9955e4ee11f2c4598c895f59 SHA512 0ca24cd2154e47a8c50fe8e2426fa01c80904ece4100b07cdb4e5835e423e31968e96f0e750e1936f1e758a608596c560aaaee05b844b334f6179249db05f969
22 DIST nltk-3.5.tar.gz 2805844 BLAKE2B d2494d831cf5503ac938b203e405ebae606166dbb907655113d3a5267bd54f03b6d8d5ac9e545fefd0b7855ce0c985064c9e746e402c540e19546e2d11ec151e SHA512 056ae219af607c158f1f2adc6fb9b4f402721778c13bf5ebc178deaf631142ad3e571d8b1fd96145067833cbeac4db25fc07c3fd032188c2d8ee7e5d7bd824f6
23
24 diff --git a/dev-python/nltk/nltk-3.4.5.ebuild b/dev-python/nltk/nltk-3.4.5.ebuild
25 deleted file mode 100644
26 index dd3b389a81e..00000000000
27 --- a/dev-python/nltk/nltk-3.4.5.ebuild
28 +++ /dev/null
29 @@ -1,59 +0,0 @@
30 -# Copyright 1999-2020 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( python3_{6,7} )
36 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
37 -
38 -inherit distutils-r1
39 -
40 -DESCRIPTION="Natural Language Toolkit"
41 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
42 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="Apache-2.0"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
47 -IUSE="tk"
48 -
49 -RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
50 -BDEPEND="
51 - test? (
52 - dev-python/joblib[${PYTHON_USEDEP}]
53 - dev-python/nltk-data
54 - dev-python/numpy[${PYTHON_USEDEP}]
55 - dev-python/pyparsing[${PYTHON_USEDEP}]
56 - dev-python/twython[${PYTHON_USEDEP}]
57 - sci-libs/scikits_learn[${PYTHON_USEDEP}]
58 - sci-libs/scipy[${PYTHON_USEDEP}]
59 - )"
60 -PDEPEND="dev-python/nltk-data"
61 -
62 -distutils_enable_tests nose
63 -
64 -PATCHES=(
65 - "${FILESDIR}"/nltk-3.4.5-corpus-tests.patch
66 -)
67 -
68 -src_prepare() {
69 - # requires unpackaged pycrfsuite
70 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
71 - # replace fetching from network with duplicate file URL
72 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
73 - -i nltk/test/data.doctest || die
74 - # requires X and hangs in Xvfb
75 - sed -e 's:test_plot:_&:' \
76 - -i nltk/test/unit/test_cfd_mutation.py || die
77 -
78 - distutils-r1_src_prepare
79 -}
80 -
81 -src_test() {
82 - cd nltk/test || die
83 - distutils-r1_src_test
84 -}
85 -
86 -python_test() {
87 - "${EPYTHON}" runtests.py -v || die "Tests failed with ${EPYTHON}"
88 -}