From c86bb949ca134f8c656ab572e107fbca127ae010 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Thu, 15 Oct 2020 15:16:29 +0000 Subject: dev-python/scikit-learn: moved sci-libs/scikits_learn Cancel the previous move in 2Q2020. Closes: https://bugs.gentoo.org/665482 Signed-off-by: Aisha Tammy Signed-off-by: Benda Xu --- dev-python/nltk/nltk-3.5-r1.ebuild | 61 ++++++++++++++++++++++++++++++++++++++ dev-python/nltk/nltk-3.5.ebuild | 61 -------------------------------------- 2 files changed, 61 insertions(+), 61 deletions(-) create mode 100644 dev-python/nltk/nltk-3.5-r1.ebuild delete mode 100644 dev-python/nltk/nltk-3.5.ebuild (limited to 'dev-python/nltk') diff --git a/dev-python/nltk/nltk-3.5-r1.ebuild b/dev-python/nltk/nltk-3.5-r1.ebuild new file mode 100644 index 000000000000..f00468f89f2c --- /dev/null +++ b/dev-python/nltk/nltk-3.5-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite,tk?,xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Natural Language Toolkit" +HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" +SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="tk" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/joblib[${PYTHON_USEDEP}] + >=dev-python/nltk-data-20200312-r1 + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/twython[${PYTHON_USEDEP}] + dev-python/scikit-learn[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + )" +PDEPEND="dev-python/nltk-data" + +distutils_enable_tests nose + +src_prepare() { + # requires unpackaged pycrfsuite + sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die + # replace fetching from network with duplicate file URL + sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \ + -i nltk/test/data.doctest || die + # requires X and hangs in Xvfb + sed -e 's:test_plot:_&:' \ + -i nltk/test/unit/test_cfd_mutation.py || die + + distutils-r1_src_prepare +} + +src_test() { + cd nltk/test || die + distutils-r1_src_test +} + +python_test() { + "${EPYTHON}" runtests.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/nltk/nltk-3.5.ebuild b/dev-python/nltk/nltk-3.5.ebuild deleted file mode 100644 index 3cf78bba0f11..000000000000 --- a/dev-python/nltk/nltk-3.5.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} ) -PYTHON_REQ_USE="sqlite,tk?,xml(+)" - -inherit distutils-r1 - -DESCRIPTION="Natural Language Toolkit" -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" -IUSE="tk" - -RDEPEND=" - dev-python/click[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/tqdm[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/joblib[${PYTHON_USEDEP}] - >=dev-python/nltk-data-20200312-r1 - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - dev-python/twython[${PYTHON_USEDEP}] - sci-libs/scikits_learn[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - )" -PDEPEND="dev-python/nltk-data" - -distutils_enable_tests nose - -src_prepare() { - # requires unpackaged pycrfsuite - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die - # replace fetching from network with duplicate file URL - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \ - -i nltk/test/data.doctest || die - # requires X and hangs in Xvfb - sed -e 's:test_plot:_&:' \ - -i nltk/test/unit/test_cfd_mutation.py || die - - distutils-r1_src_prepare -} - -src_test() { - cd nltk/test || die - distutils-r1_src_test -} - -python_test() { - "${EPYTHON}" runtests.py -v || die "Tests failed with ${EPYTHON}" -} -- cgit v1.2.3-65-gdbad