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: Fri, 25 Jun 2021 07:10:43
Message-Id: 1624604287.38acbb2992e9ed7ac28e24e4a50cebe8e25cad12.mgorny@gentoo
1 commit: 38acbb2992e9ed7ac28e24e4a50cebe8e25cad12
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 25 06:58:07 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 25 06:58:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38acbb29
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 | 2 --
13 dev-python/nltk/nltk-3.5.ebuild | 61 ---------------------------------------
14 dev-python/nltk/nltk-3.6.1.ebuild | 58 -------------------------------------
15 3 files changed, 121 deletions(-)
16
17 diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest
18 index bd72396ac03..5ec770ae13e 100644
19 --- a/dev-python/nltk/Manifest
20 +++ b/dev-python/nltk/Manifest
21 @@ -1,3 +1 @@
22 -DIST nltk-3.5.tar.gz 2805844 BLAKE2B d2494d831cf5503ac938b203e405ebae606166dbb907655113d3a5267bd54f03b6d8d5ac9e545fefd0b7855ce0c985064c9e746e402c540e19546e2d11ec151e SHA512 056ae219af607c158f1f2adc6fb9b4f402721778c13bf5ebc178deaf631142ad3e571d8b1fd96145067833cbeac4db25fc07c3fd032188c2d8ee7e5d7bd824f6
23 -DIST nltk-3.6.1.tar.gz 2820223 BLAKE2B 74ae44376e8f59e4ccfd4bdb5d6f535a8480733a2fdc6a8f1117a551f64d9f6404ca237bd27cd4a4a9d32443d38179c7a1c824e00e808868d45e468ab84eb1bd SHA512 ab0e8abc938fa0bfadc3f02dc583749775a6c06d2d2ee30692ccd9c118277fd79cfed02f858d4347dacbe87f146cb8f9af1203a8d68685f131da5f6b127b86cb
24 DIST nltk-3.6.2.tar.gz 2819833 BLAKE2B 9796822c35c524432e9790d0890b4388fbaa85b659e5415037422a22e8edbaf20775196b4416f441d62592b387066de9f7741b988c0d463349fc5c906bfd75b2 SHA512 3fd2cba52377613f35f6574f859482de987f969cfc8d4243a859be365ab1bd8300f9013dcedc6caeff7aa7fc035b331a47b557027209ca9a85b0cc7fbde44d6d
25
26 diff --git a/dev-python/nltk/nltk-3.5.ebuild b/dev-python/nltk/nltk-3.5.ebuild
27 deleted file mode 100644
28 index 527521c9aff..00000000000
29 --- a/dev-python/nltk/nltk-3.5.ebuild
30 +++ /dev/null
31 @@ -1,61 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -DISTUTILS_USE_SETUPTOOLS=rdepend
38 -PYTHON_COMPAT=( python3_{7,8} )
39 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
40 -
41 -inherit distutils-r1
42 -
43 -DESCRIPTION="Natural Language Toolkit"
44 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
45 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="Apache-2.0"
48 -SLOT="0"
49 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
50 -IUSE="tk"
51 -
52 -RDEPEND="
53 - dev-python/click[${PYTHON_USEDEP}]
54 - dev-python/joblib[${PYTHON_USEDEP}]
55 - dev-python/regex[${PYTHON_USEDEP}]
56 - dev-python/tqdm[${PYTHON_USEDEP}]
57 -"
58 -BDEPEND="
59 - test? (
60 - dev-python/joblib[${PYTHON_USEDEP}]
61 - >=dev-python/nltk-data-20200312-r1
62 - dev-python/numpy[${PYTHON_USEDEP}]
63 - dev-python/pyparsing[${PYTHON_USEDEP}]
64 - dev-python/twython[${PYTHON_USEDEP}]
65 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
66 - dev-python/scipy[${PYTHON_USEDEP}]
67 - )"
68 -PDEPEND="dev-python/nltk-data"
69 -
70 -distutils_enable_tests nose
71 -
72 -src_prepare() {
73 - # requires unpackaged pycrfsuite
74 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
75 - # replace fetching from network with duplicate file URL
76 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
77 - -i nltk/test/data.doctest || die
78 - # requires X and hangs in Xvfb
79 - sed -e 's:test_plot:_&:' \
80 - -i nltk/test/unit/test_cfd_mutation.py || die
81 -
82 - distutils-r1_src_prepare
83 -}
84 -
85 -src_test() {
86 - cd nltk/test || die
87 - distutils-r1_src_test
88 -}
89 -
90 -python_test() {
91 - "${EPYTHON}" runtests.py -v || die "Tests failed with ${EPYTHON}"
92 -}
93
94 diff --git a/dev-python/nltk/nltk-3.6.1.ebuild b/dev-python/nltk/nltk-3.6.1.ebuild
95 deleted file mode 100644
96 index d03c6152723..00000000000
97 --- a/dev-python/nltk/nltk-3.6.1.ebuild
98 +++ /dev/null
99 @@ -1,58 +0,0 @@
100 -# Copyright 1999-2021 Gentoo Authors
101 -# Distributed under the terms of the GNU General Public License v2
102 -
103 -EAPI=7
104 -
105 -DISTUTILS_USE_SETUPTOOLS=rdepend
106 -PYTHON_COMPAT=( python3_{7..9} )
107 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
108 -
109 -inherit distutils-r1
110 -
111 -DESCRIPTION="Natural Language Toolkit"
112 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
113 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
114 -
115 -LICENSE="Apache-2.0"
116 -SLOT="0"
117 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
118 -IUSE="tk"
119 -
120 -RDEPEND="
121 - dev-python/click[${PYTHON_USEDEP}]
122 - dev-python/joblib[${PYTHON_USEDEP}]
123 - dev-python/regex[${PYTHON_USEDEP}]
124 - dev-python/tqdm[${PYTHON_USEDEP}]
125 -"
126 -BDEPEND="
127 - test? (
128 - dev-python/joblib[${PYTHON_USEDEP}]
129 - >=dev-python/nltk-data-20200312-r1
130 - dev-python/numpy[${PYTHON_USEDEP}]
131 - dev-python/pyparsing[${PYTHON_USEDEP}]
132 - dev-python/pytest-mock[${PYTHON_USEDEP}]
133 - dev-python/twython[${PYTHON_USEDEP}]
134 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
135 - dev-python/scipy[${PYTHON_USEDEP}]
136 - )"
137 -PDEPEND="dev-python/nltk-data"
138 -
139 -distutils_enable_tests pytest
140 -
141 -src_prepare() {
142 - # requires unpackaged pycrfsuite
143 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
144 - # replace fetching from network with duplicate file URL
145 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
146 - -i nltk/test/data.doctest || die
147 - # requires X and hangs in Xvfb
148 - sed -e 's:test_plot:_&:' \
149 - -i nltk/test/unit/test_cfd_mutation.py || die
150 -
151 - distutils-r1_src_prepare
152 -}
153 -
154 -src_test() {
155 - cd nltk/test || die
156 - distutils-r1_src_test
157 -}